Line 308: | Line 308: | ||
<p> By using Java and working with the libraries which support the spreadsheet format, the team was able to directly compare sets of data by calling for values from each cell and calculating the difference. This was then checked with a threshold value; if it is above the threshold value, it fails the check and the user is locked out.</p> | <p> By using Java and working with the libraries which support the spreadsheet format, the team was able to directly compare sets of data by calling for values from each cell and calculating the difference. This was then checked with a threshold value; if it is above the threshold value, it fails the check and the user is locked out.</p> | ||
<p> </p> | <p> </p> | ||
+ | <p> A threshold value is how much variation the colony can have from the mother colony before it isn't valid. An issue with this as time goes on, the threshold value will have to change to catch a larger variation because the longer the colony is away from the mother colony, the more different it becomes. In order to calculate a threshold value at any given time, a Polynomial Fit of Order 3 is calculated using the data from the mother colony. To calculate the Polynomial Fit, Figure 6 was translated into Java code. </p> | ||
<p style="text-align: center;" > Figure 6 </p> | <p style="text-align: center;" > Figure 6 </p> | ||
− | + | $$ y_{i} = \beta_{0} + \beta_{1}x_{i}+ \beta_{1}x^2_{i} + ... + + \beta_{m}x^m_{i} + \varepsilon_{i} (i = 1,2,...,n) $$ | |
− | + | ||
− | <p> | + | <p> The team decided it would be appropriate to use Polynomial Fitting as it was found to follow the points the closest when graphed. Furthermore, threshold could be adjusted by adding or subtracting from the equation produced. The data from the Key colony is checked and if it falls outside the threshold, the user is locked! </p> |
<br> </br> | <br> </br> |
Revision as of 21:39, 1 November 2017
SOFTWARE