Tempus
Version of the Day
Time Integration
|
Linear regression class. Copied and modified from Rythmos. More...
#include <Tempus_ConvergenceTestUtils.hpp>
Public Member Functions | |
LinearRegression () | |
void | setData (std::vector< Scalar > &x, std::vector< Scalar > &y) |
Scalar | getSlope () const |
Scalar | getYIntercept () const |
Private Member Functions | |
void | compute_ () |
void | validateXYData_ (std::vector< Scalar > &x, std::vector< Scalar > &y) |
Private Attributes | |
std::vector< Scalar > | x_ |
std::vector< Scalar > | y_ |
Scalar | slope_ |
Scalar | yIntercept_ |
bool | isInitialized_ |
Linear regression class. Copied and modified from Rythmos.
Definition at line 24 of file Tempus_ConvergenceTestUtils.hpp.
Tempus_Test::LinearRegression< Scalar >::LinearRegression | ( | ) |
Definition at line 47 of file Tempus_ConvergenceTestUtils.hpp.
|
private |
Definition at line 98 of file Tempus_ConvergenceTestUtils.hpp.
Scalar Tempus_Test::LinearRegression< Scalar >::getSlope | ( | ) | const |
Definition at line 84 of file Tempus_ConvergenceTestUtils.hpp.
Scalar Tempus_Test::LinearRegression< Scalar >::getYIntercept | ( | ) | const |
Definition at line 91 of file Tempus_ConvergenceTestUtils.hpp.
void Tempus_Test::LinearRegression< Scalar >::setData | ( | std::vector< Scalar > & | x, |
std::vector< Scalar > & | y | ||
) |
Definition at line 53 of file Tempus_ConvergenceTestUtils.hpp.
|
private |
Definition at line 64 of file Tempus_ConvergenceTestUtils.hpp.
|
private |
Definition at line 41 of file Tempus_ConvergenceTestUtils.hpp.
|
private |
Definition at line 39 of file Tempus_ConvergenceTestUtils.hpp.
|
private |
Definition at line 37 of file Tempus_ConvergenceTestUtils.hpp.
|
private |
Definition at line 38 of file Tempus_ConvergenceTestUtils.hpp.
|
private |
Definition at line 40 of file Tempus_ConvergenceTestUtils.hpp.