Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Regression::Store Class Reference

#include <store.h>

Inheritance diagram for Regression::Store:
Shared::InteractiveCurveViewRange Shared::FloatPairStore Shared::InteractiveCurveViewRangeDelegate Shared::MemoizedCurveViewRange Shared::CurveViewRange

Public Member Functions

 Store ()
 
int closestVerticalDot (int direction, float x)
 
int nextDot (int direction, int dot)
 
void setDefault () override
 
double numberOfPairs ()
 
double squaredValueSumOfColumn (int i)
 
double columnProductSum ()
 
double meanOfColumn (int i)
 
double varianceOfColumn (int i)
 
double standardDeviationOfColumn (int i)
 
double covariance ()
 
double slope ()
 
double yIntercept ()
 
double yValueForXValue (double x)
 
double xValueForYValue (double y)
 
double correlationCoefficient ()
 
double squaredCorrelationCoefficient ()
 
- Public Member Functions inherited from Shared::InteractiveCurveViewRange
 InteractiveCurveViewRange (CurveViewCursor *cursor, InteractiveCurveViewRangeDelegate *delegate=nullptr)
 
void setDelegate (InteractiveCurveViewRangeDelegate *delegate)
 
void setCursor (CurveViewCursor *cursor)
 
uint32_t rangeChecksum () override
 
bool yAuto ()
 
void setXMin (float f) override
 
void setXMax (float f) override
 
void setYMin (float f) override
 
void setYMax (float f) override
 
void setYAuto (bool yAuto)
 
void zoom (float ratio, float x, float y)
 
void panWithVector (float x, float y)
 
virtual void roundAbscissa ()
 
virtual void normalize ()
 
virtual void setTrigonometric ()
 
void centerAxisAround (Axis axis, float position)
 
void panToMakePointVisible (float x, float y, float topMarginRatio, float rightMarginRatio, float bottomMarginRation, float leftMarginRation)
 
bool isCursorVisible (float topMarginRatio, float rightMarginRatio, float bottomMarginRation, float leftMarginRation)
 
- Public Member Functions inherited from Shared::MemoizedCurveViewRange
 MemoizedCurveViewRange ()
 
float xMin () override
 
float xMax () override
 
float yMin () override
 
float yMax () override
 
float xGridUnit () override
 
float yGridUnit () override
 
- Public Member Functions inherited from Shared::CurveViewRange
float computeGridUnit (Axis axis, float min, float max)
 
- Public Member Functions inherited from Shared::FloatPairStore
 FloatPairStore ()
 
 FloatPairStore (const FloatPairStore &)=delete
 
double get (int i, int j)
 
void set (double f, int i, int j)
 
int numberOfPairs ()
 
void deletePairAtIndex (int j)
 
void deleteAllPairs ()
 
void resetColumn (int i)
 
double sumOfColumn (int i)
 
uint32_t storeChecksum ()
 
- Public Member Functions inherited from Shared::InteractiveCurveViewRangeDelegate
bool didChangeRange (InteractiveCurveViewRange *interactiveCurveViewRange)
 
virtual float interestingXRange ()
 

Additional Inherited Members

- Public Types inherited from Shared::CurveViewRange
enum  Axis { Axis::X, Axis::Y }
 
- Static Public Attributes inherited from Shared::CurveViewRange
static constexpr float k_maxNumberOfXGridUnits = 18.0f
 
static constexpr float k_maxNumberOfYGridUnits = 13.0f
 
- Static Public Attributes inherited from Shared::FloatPairStore
static constexpr int k_maxNumberOfPairs = 100
 
- Protected Member Functions inherited from Shared::FloatPairStore
virtual double defaultValue (int i, int j)
 
- Static Protected Member Functions inherited from Shared::InteractiveCurveViewRange
static float clipped (float f, bool isMax)
 
- Protected Attributes inherited from Shared::InteractiveCurveViewRange
bool m_yAuto
 
InteractiveCurveViewRangeDelegatem_delegate
 
- Protected Attributes inherited from Shared::MemoizedCurveViewRange
float m_xMin
 
float m_xMax
 
float m_yMin
 
float m_yMax
 
float m_xGridUnit
 
float m_yGridUnit
 
- Protected Attributes inherited from Shared::FloatPairStore
int m_numberOfPairs
 
double m_data [2][k_maxNumberOfPairs]
 

Detailed Description

Definition at line 9 of file store.h.

Constructor & Destructor Documentation

◆ Store()

Regression::Store::Store ( )

Definition at line 11 of file store.cpp.

Member Function Documentation

◆ closestVerticalDot()

int Regression::Store::closestVerticalDot ( int  direction,
float  x 
)

Definition at line 19 of file store.cpp.

◆ columnProductSum()

double Regression::Store::columnProductSum ( )

Definition at line 154 of file store.cpp.

◆ correlationCoefficient()

double Regression::Store::correlationCoefficient ( )

Definition at line 201 of file store.cpp.

◆ covariance()

double Regression::Store::covariance ( )

Definition at line 178 of file store.cpp.

◆ meanOfColumn()

double Regression::Store::meanOfColumn ( int  i)

Definition at line 162 of file store.cpp.

◆ nextDot()

int Regression::Store::nextDot ( int  direction,
int  dot 
)

Definition at line 51 of file store.cpp.

◆ numberOfPairs()

double Regression::Store::numberOfPairs ( )

Definition at line 122 of file store.cpp.

◆ setDefault()

void Regression::Store::setDefault ( )
overridevirtual

Reimplemented from Shared::InteractiveCurveViewRange.

Definition at line 111 of file store.cpp.

◆ slope()

double Regression::Store::slope ( )

Definition at line 182 of file store.cpp.

◆ squaredCorrelationCoefficient()

double Regression::Store::squaredCorrelationCoefficient ( )

Definition at line 210 of file store.cpp.

◆ squaredValueSumOfColumn()

double Regression::Store::squaredValueSumOfColumn ( int  i)

Definition at line 146 of file store.cpp.

◆ standardDeviationOfColumn()

double Regression::Store::standardDeviationOfColumn ( int  i)

Definition at line 174 of file store.cpp.

◆ varianceOfColumn()

double Regression::Store::varianceOfColumn ( int  i)

Definition at line 169 of file store.cpp.

◆ xValueForYValue()

double Regression::Store::xValueForYValue ( double  y)

Definition at line 194 of file store.cpp.

◆ yIntercept()

double Regression::Store::yIntercept ( )

Definition at line 186 of file store.cpp.

◆ yValueForXValue()

double Regression::Store::yValueForXValue ( double  x)

Definition at line 190 of file store.cpp.


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