Reference no: EM132619196
A script to grab CPU temperature data every 30 seconds has been created. This resulted in three sets of data:
sensors-2018.12.26.txt
sensors-2019.01.26.txt
sensors-2019.02.09.txt
Click on each item to view raw text file.
Each of the encoding jobs ran for 5 to 10 hours. If you look at the data you see four temperatures for each reading. My CPU is a 4-core (8 thread) Intel i7-6700K. I found myself interested in not only the behavior of the readings, but also in the temperature differences between the 4 CPU cores.
Your task is to take the temperature readings and generate for each core:
1. A piecewise linear interpolation.
2. A global linear least squares approximation.
3. A cubic spline (or other non-linear) interpolation.
Program Arguments & Execution
Your program must accept an input filename as the first command line argument. Your program must NOT prompt the user for a filename.
1 Input Format
Data takes the form of temperatures in a txt file. All data points are whitespace delimited. For example, if I had 5 temperature readings:
would be a possible input files. Each line represents temperature readings from 4 processor cores. Process each temperature column independently. Readings are taken every 30 seconds. In this example:
• line 1 is 0 sec
• line 2 is 30 sec,
• line 3 is 60 sec.
• line 4 is 120 sec.
• line 5 is 180 sec.
Your first step should be to pre-process this data into a usable form. Conceptually, you need the data in the following format:
Programming Requirements & Constraints
o Provide a brief ReadMe file that specifies how to compile and
o Provide makefiles (or equivalent build files) for any compilable code.
Design & Style Requirements
• All code must follow best practices for:
o Indentation and spacing
o Naming conventions
o Top-down design (i.e., no monolithic functions)
Documentation Requirements
All code must be properly and fully documented using a language appropriate comment style. All functions (including parameters and return types) must be documented.
1. Doxygen can be used for C++
Attachment:- temperature_reading.rar