Write a quick script to grab cpu temperature

Assignment Help Python Programming
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

Reference no: EM133157858

Questions Cloud

Find deontological and consequentialist perspective : Blaze Products is a company based in a developing country. The company is acquired by an American Conglomerate.
Compute the net present value and profitability index : A discount rate of 8% is appropriate for both projects. Compute the net present value and profitability index of each project
Requirements of a termination decision : Analyze the legal implications or requirements of a termination decision. What are the specific statutes or laws that govern this area of employment law?
How much was the accumulated value at the end of the term : Fatima deposited payments of $724 to his RRSP account at the end of every three months for 6 years. How much was the accumulated value at the end of the term
Write a quick script to grab cpu temperature : Write a quick script to grab CPU temperature data every 30 seconds - Your first step should be to pre-process this data into a usable form
Calculate the normal time to complete the task : During this time, 30 serial units were produced. The regulator assessed the implementation of standards with a coefficient of 90%. Calculate the normal time
What can big gerson spend on fixed costs : What can Big Gerson's spend on fixed costs if they sell 150,000 meals at a selling price of $18.00 with their current cost of goods
What are the duties of a senior leader and a line manager : What are the duties of a senior leader and a line manager. And also what are their differences (senior leader & manager).?
What must the beta of this stock be : A stock has an expected return of 13.5%, the risk-free rate is 5.2%, and the market risk premium is 8.5%. What must the beta of this stock be

Reviews

Write a Review

Python Programming Questions & Answers

  Design and implement an english test

CSP1150 - Programming Principles - You are required to design and implement an "English Test" program in which the user is presented with a word and then asked to answer a simple question about the word. After 5 words, the program shows the user's..

  Write a function that calculates the mean and median

Write a function that, given a list of numbers, calculates the mean, median, and mode of those numbers. Return a dictionary with properties for the mean, median

  Computer-aided software engineering tool

Draw a class diagram by hand - which is fine - if it is only a small class or two; if the code involves many more classes some help is greatly appreciated

  Create program that multiplies two hard-coded numbers

Create program that multiplies two hard-coded numbers, then prints the individual numbers out and prints their product out, all on separate lines.

  Explain what are black box and white box testing

Describe what each of these three terms mean, including the difference between test cases and unit tests and Calculate the sum of two values and return

  What are files and what are the benefits of using files

Write a Python program that reads a text file 'sentence.txt' containing four lines of text and prints those lines.

  Modern optimisation - modern optimisation report

CMP7213 - Modern Optimisation - BIRMINGHAM CITY UNIVERSITY - Coursework Assignment Brief - Critically evaluate different optimisation techniques

  Student record due smartsite thursday 1211 1155 pm file

due smartsite thursday 1211 1155 p.m. file names grading.py ltbrgtall prompts for input and all output must match my

  Draw a flowchart and write up some pseudocode

Draw a flowchart and write up some pseudocode for searching for a particular element in an arbitrary list.

  What are some methods that will aid secure the data

In regards to Python programming, what are some methods that will aid secure the data-in-transit and at-rest? Also, what are some examples?

  How many times does the body of the while loop repeat

How many times does the body of the while loop repeat? What is the output of each loop? Write a program which gives the option between doing 3 things.

  Design the pseudocode for a program that accepts data

The Barking Lot is a dog day care center. Design the pseudocode for a program that accepts data for an ID number of the dog's owner, and the name.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd