Reference no: EM133157858
Overview
As a Computer Scientist, I have a number of interests. Many of these interests overlap. While designing this project, I happened to be batch encoding some videos. I decided to write a quick script to grab CPU temperature data every 30 seconds. This resulted in three sets of data:
Input
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 90 sec.
line 5 is 120 sec.
line 6 is 150 sec.
line 7 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:
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. (Optional) A cubic spline (or other non-linear) interpolation.
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.
Architecture
Your solution must be organized into appropriate "modules" (using each language's best practices). Start with four modules:
1. Input (e.g., using the supplied input libraries)
2. Data pre-processing (i.e., structuring the data for analysis)
3. Piecewise Linear Interpolation
4. Least Squares Approximation
Attachment:- Project - CPU Temps.rar