argus's People
argus's Issues
What is sudden change?
In part 5 we are being asked that we need to return the sudden change in the temperature of a CPU. What does sudden change imply? Is it the largest change between two temperature readings?
Can someone please ask this tomorrow in class @ppradiplamsal @zluckman @Airboy98 !
Deadline?
Decide on a deadline for the project.
Some updates
-
Please install "mathjs".
npm install mathjs
I have already added it as a dependency. -
Here are some sample command line commands to use for the program:
node argus.js testData.json max temperature
node argus.js testData.json variance fan_speed
node argus.js testData.json sudden_change memory_usage
- The minimum fan speed will be printed as "The maximum min fan_speed is ....".
Add `travis.yml`
Also ensure that all tests are running fine!
Rigorous testing
We should have more tests for statistical functions. Can someone help me write it?
In-built stats functions
@ppradiplamsal - I just realized that there are probably in-built functions in the JavaScript library. We are re-inventing the week with average, max, and min! We should probably look into it.
I will look into it tomorrow.
Setup project folders with testing
Rename the project
Questions regarding the project
- What is the definition of a computer (each has 2 CPU).
- CPU Load is only given for 1 CPU.
Read JSON file
Change the `var` to `const` or `let`
Find alternative to `switch` cases.
Find better ways than using switch cases for choosing the variable and the stats function
Accessing data from the JSON File
So I am able to read the JSON file but I am having some trouble. I am able to list all the nodes ("compute-1-1", "compute-8-1", etc.), however, I am not able to access the attributes inside these nodes, such as arrTemperatureCPU1
, arrFanSpeed
etc.
Here is how I am trying to access the data
let jsonFile = require('..\data\testData.json');
console.log(jsonFile.compute-1-1.arrTemperatureCPU1[0]);
This should return 63, based on the data we have, but I am getting a syntax error. I am thinking this is because of the naming style of the compute nodes - compute-1-1
instead of compute_1_1
. Because I am getting a SyntaxError
.
Can anyone solve this?
Test extensively
Write extensive tests for each requirement of the code.
Thoughts
Do you guys think our we eventually need to create an objects that the following in order to facilitate visualization?
Data = {Temp: [Avg: , Variance: , {Highest Value:[Value: , Time: ]}, {Lowest Value:[Value: , Time: ]}, {Highest Sudden Change:[Change: , Time: ]}],
CPU Load: [Avg: , Variance: , {Highest Value:[Value: , Time: ]}, {Lowest Value:[Value: , Time: ]}, {Highest Sudden Change:[Change: , Time: ]}],
Memory Use: [Avg: , Variance: , {Highest Value:[Value: , Time: ]}, {Lowest Value:[Value: , Time: ]}, {Highest Sudden Change:[Change: , Time: ]}],
Fan Speed: [Avg: , Variance: , {Highest Value:[Value: , Time: ]}, {Lowest Value:[Value: , Time: ]}, {Highest Sudden Change:[Change: , Time: ]}]
}
MData = {
CM1: {CP1: Data,
CP2: Data}
,
CM2: {CP1: Data,
CP2: Data}
,
.
.
.
,
CM100: {CP1: Data,
CP2: Data}
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.