Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Tempus_Test::LinearRegression< Scalar > Class Template Reference

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_
 

Detailed Description

template<class Scalar>
class Tempus_Test::LinearRegression< Scalar >

Linear regression class. Copied and modified from Rythmos.

Definition at line 27 of file Tempus_ConvergenceTestUtils.hpp.

Constructor & Destructor Documentation

template<class Scalar >
Tempus_Test::LinearRegression< Scalar >::LinearRegression ( )

Definition at line 50 of file Tempus_ConvergenceTestUtils.hpp.

Member Function Documentation

template<class Scalar >
void Tempus_Test::LinearRegression< Scalar >::setData ( std::vector< Scalar > &  x,
std::vector< Scalar > &  y 
)

Definition at line 56 of file Tempus_ConvergenceTestUtils.hpp.

template<class Scalar >
Scalar Tempus_Test::LinearRegression< Scalar >::getSlope ( ) const

Definition at line 88 of file Tempus_ConvergenceTestUtils.hpp.

template<class Scalar >
Scalar Tempus_Test::LinearRegression< Scalar >::getYIntercept ( ) const

Definition at line 95 of file Tempus_ConvergenceTestUtils.hpp.

template<class Scalar >
void Tempus_Test::LinearRegression< Scalar >::compute_ ( )
private

Definition at line 102 of file Tempus_ConvergenceTestUtils.hpp.

template<class Scalar >
void Tempus_Test::LinearRegression< Scalar >::validateXYData_ ( std::vector< Scalar > &  x,
std::vector< Scalar > &  y 
)
private

Definition at line 67 of file Tempus_ConvergenceTestUtils.hpp.

Member Data Documentation

template<class Scalar>
std::vector<Scalar> Tempus_Test::LinearRegression< Scalar >::x_
private

Definition at line 40 of file Tempus_ConvergenceTestUtils.hpp.

template<class Scalar>
std::vector<Scalar> Tempus_Test::LinearRegression< Scalar >::y_
private

Definition at line 41 of file Tempus_ConvergenceTestUtils.hpp.

template<class Scalar>
Scalar Tempus_Test::LinearRegression< Scalar >::slope_
private

Definition at line 42 of file Tempus_ConvergenceTestUtils.hpp.

template<class Scalar>
Scalar Tempus_Test::LinearRegression< Scalar >::yIntercept_
private

Definition at line 43 of file Tempus_ConvergenceTestUtils.hpp.

template<class Scalar>
bool Tempus_Test::LinearRegression< Scalar >::isInitialized_
private

Definition at line 44 of file Tempus_ConvergenceTestUtils.hpp.


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