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

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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