PROFASI
Version 1.5
|
CorrelationBox finds the correlation coefficient between two data streams. More...
#include <statistics.hh>
Public Member Functions | |
void | reset () |
Reset, forget everything, start new. | |
void | put (double x, double y) |
Put a data snapshot consisting of values from two streams, x and y. | |
void | takeaway (double x, double y) |
Take away a point. | |
double | correlation () |
This class finds the correlation cooefficient of two streams of data, without storing individual data points. Similar in usage to the StatBox
|
inline |
Get the correlation coefficient (<xy>-<x><y>)/(std.dev.(x) * std. dev.(y))
|
inline |
Caution: Take away can not check if the point was ever put in to the box