Git Product home page Git Product logo

argus's People

Contributors

airboy98 avatar vijayantajain avatar zluckman avatar

Watchers

 avatar  avatar

argus's Issues

Rigorous testing

We should have more tests for statistical functions. Can someone help me write it?

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}
}

Some updates

  1. Please install "mathjs".
    npm install mathjs
    I have already added it as a dependency.

  2. 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

  1. The minimum fan speed will be printed as "The maximum min fan_speed is ....".

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.

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?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.