PROFASI  Version 1.5
Public Member Functions | List of all members
prf_utils::CorrelationBox Class Reference

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 ()
 

Detailed Description

This class finds the correlation cooefficient of two streams of data, without storing individual data points. Similar in usage to the StatBox

Member Function Documentation

double prf_utils::CorrelationBox::correlation ( )
inline

Get the correlation coefficient (<xy>-<x><y>)/(std.dev.(x) * std. dev.(y))

void prf_utils::CorrelationBox::takeaway ( double  x,
double  y 
)
inline

Caution: Take away can not check if the point was ever put in to the box


The documentation for this class was generated from the following file:

PROFASI: Protein Folding and Aggregation Simulator, Version 1.5
© (2005-2016) Anders Irbäck and Sandipan Mohanty
Documentation generated on Mon Jul 18 2016 using Doxygen version 1.8.2