Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
lfit_test.cc File Reference
#include <gtest/gtest.h>
#include <lfit.H>
#include <cmath>
Include dependency graph for lfit_test.cc:

Go to the source code of this file.

Classes

class  LFitTest
 

Functions

 TEST_F (LFitTest, PerfectLineFit)
 
 TEST_F (LFitTest, HorizontalLine)
 
 TEST_F (LFitTest, VerticalIncrement)
 
 TEST_F (LFitTest, NegativeSlope)
 
 TEST_F (LFitTest, SlightNoise)
 
 TEST_F (LFitTest, ModerateNoise)
 
 TEST_F (LFitTest, PredictWithinRange)
 
 TEST_F (LFitTest, PredictExtrapolation)
 
 TEST_F (LFitTest, PredictMultipleValues)
 
 TEST_F (LFitTest, TwoPoints)
 
 TEST_F (LFitTest, LargeNumbers)
 
 TEST_F (LFitTest, SmallNumbers)
 
 TEST_F (LFitTest, NegativeValues)
 
 TEST_F (LFitTest, RSquaredRange)
 
 TEST_F (LFitTest, ResidualSum)
 
 TEST_F (LFitTest, MSECalculation)
 
 TEST_F (LFitTest, UniformSpacing)
 
 TEST_F (LFitTest, NonUniformSpacing)
 
 TEST_F (LFitTest, ReversedOrder)
 
 TEST_F (LFitTest, LargeDataset)
 
 TEST_F (LFitTest, ManyPredictions)
 
 TEST_F (LFitTest, RepeatConstruction)
 
 TEST_F (LFitTest, DifferentSlopes)
 
 TEST_F (LFitTest, DifferentIntercepts)
 

Function Documentation

◆ TEST_F() [1/24]

TEST_F ( LFitTest  ,
DifferentIntercepts   
)

Definition at line 329 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y1().

◆ TEST_F() [2/24]

TEST_F ( LFitTest  ,
DifferentSlopes   
)

Definition at line 314 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y1().

◆ TEST_F() [3/24]

TEST_F ( LFitTest  ,
HorizontalLine   
)

Definition at line 34 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [4/24]

TEST_F ( LFitTest  ,
LargeDataset   
)

Definition at line 266 of file lfit_test.cc.

References Aleph::Array< T >::append(), approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [5/24]

TEST_F ( LFitTest  ,
LargeNumbers   
)

Definition at line 156 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [6/24]

TEST_F ( LFitTest  ,
ManyPredictions   
)

Definition at line 283 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), pred, and y.

◆ TEST_F() [7/24]

TEST_F ( LFitTest  ,
ModerateNoise   
)

Definition at line 88 of file lfit_test.cc.

References Aleph::maps(), and y.

◆ TEST_F() [8/24]

TEST_F ( LFitTest  ,
MSECalculation   
)

Definition at line 212 of file lfit_test.cc.

References Aleph::maps(), and y.

◆ TEST_F() [9/24]

TEST_F ( LFitTest  ,
NegativeSlope   
)

Definition at line 58 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [10/24]

TEST_F ( LFitTest  ,
NegativeValues   
)

Definition at line 176 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [11/24]

TEST_F ( LFitTest  ,
NonUniformSpacing   
)

Definition at line 241 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [12/24]

TEST_F ( LFitTest  ,
PerfectLineFit   
)

Definition at line 20 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [13/24]

TEST_F ( LFitTest  ,
PredictExtrapolation   
)

Definition at line 115 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), pred, and y.

◆ TEST_F() [14/24]

TEST_F ( LFitTest  ,
PredictMultipleValues   
)

Definition at line 126 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), pred, and y.

◆ TEST_F() [15/24]

TEST_F ( LFitTest  ,
PredictWithinRange   
)

Definition at line 104 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), pred, and y.

◆ TEST_F() [16/24]

TEST_F ( LFitTest  ,
RepeatConstruction   
)

Definition at line 297 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [17/24]

TEST_F ( LFitTest  ,
ResidualSum   
)

Definition at line 201 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [18/24]

TEST_F ( LFitTest  ,
ReversedOrder   
)

Definition at line 251 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [19/24]

TEST_F ( LFitTest  ,
RSquaredRange   
)

Definition at line 190 of file lfit_test.cc.

References Aleph::maps(), and y.

◆ TEST_F() [20/24]

TEST_F ( LFitTest  ,
SlightNoise   
)

Definition at line 75 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [21/24]

TEST_F ( LFitTest  ,
SmallNumbers   
)

Definition at line 166 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [22/24]

TEST_F ( LFitTest  ,
TwoPoints   
)

Definition at line 145 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.

◆ TEST_F() [23/24]

TEST_F ( LFitTest  ,
UniformSpacing   
)

◆ TEST_F() [24/24]

TEST_F ( LFitTest  ,
VerticalIncrement   
)

Definition at line 45 of file lfit_test.cc.

References approx_equal(), Aleph::maps(), and y.