User:Kithira/Course Pages/CSCI 12/Assignment 2/Group 1/Homework 4: Difference between revisions

Content deleted Content added
CMacLeanC (talk | contribs)
m Code:: edited code further and updated the description
CMacLeanC (talk | contribs)
Final Project: cleaned it up a bit
Line 1:
==Final Project ==
'''by: Christopher Chandler, Ashley Kim, Marina Chaves Caldieraro=='''
 
=== Code: ===
 
==== Summation Program plus Filter ====
<source lang="python">
from math import sqrt, pow
Line 18:
 
This code represents the function Summarize, which summarizes each input using <math>|\sqrt{x^2 + y^2 + z^2}{-1}|</math>. Then, these values are summarized for ''i in range(40)'', which gives a value for 1 second. To prevent against data spikes the programs checks the difference between the previous value and the current value, and if the difference is greater than 2 it replaces the current value with the previous value.
 
==== Core Program ====
 
<source lang="python">