OpenMD 3.0
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::ChebyshevT Class Reference

A collection of Chebyshev Polynomials. More...

#include <ChebyshevT.hpp>

Public Member Functions

 ChebyshevT (int maxPower)
 
RealType evaluate (int n, RealType x)
 Calculates the value of the nth Chebyshev Polynomial evaluated at the given x value.
 
RealType evaluateDerivative (int n, RealType x)
 Returns the first derivative of the nth Chebyshev Polynomial.
 
const DoublePolynomialgetChebyshevPolynomial (int n) const
 Returns the nth Chebyshev Polynomial.
 

Protected Member Functions

void GeneratePolynomials (int maxPower)
 

Protected Attributes

std::vector< DoublePolynomialpolyList_
 

Detailed Description

A collection of Chebyshev Polynomials.

Todo
document

Definition at line 67 of file ChebyshevT.hpp.

Constructor & Destructor Documentation

◆ ChebyshevT()

OpenMD::ChebyshevT::ChebyshevT ( int maxPower)

Definition at line 48 of file ChebyshevT.cpp.

◆ ~ChebyshevT()

virtual OpenMD::ChebyshevT::~ChebyshevT ( )
inlinevirtual

Definition at line 70 of file ChebyshevT.hpp.

Member Function Documentation

◆ evaluate()

RealType OpenMD::ChebyshevT::evaluate ( int n,
RealType x )
inline

Calculates the value of the nth Chebyshev Polynomial evaluated at the given x value.

Returns
The value of the nth Chebyshev Polynomial evaluates at the given x value
Parameters
n
xthe value of the independent variable for the nth Chebyshev Polynomial function

Definition at line 81 of file ChebyshevT.hpp.

◆ evaluateDerivative()

RealType OpenMD::ChebyshevT::evaluateDerivative ( int n,
RealType x )
inline

Returns the first derivative of the nth Chebyshev Polynomial.

Returns
the first derivative of the nth Chebyshev Polynomial
Parameters
n
xthe value of the independent variable for the nth Chebyshev Polynomial function

Definition at line 93 of file ChebyshevT.hpp.

◆ GeneratePolynomials()

void OpenMD::ChebyshevT::GeneratePolynomials ( int maxPower)
protected

Definition at line 53 of file ChebyshevT.cpp.

◆ getChebyshevPolynomial()

const DoublePolynomial & OpenMD::ChebyshevT::getChebyshevPolynomial ( int n) const
inline

Returns the nth Chebyshev Polynomial.

Returns
the nth Chebyshev Polynomial
Parameters
n

Definition at line 103 of file ChebyshevT.hpp.

Member Data Documentation

◆ polyList_

std::vector<DoublePolynomial> OpenMD::ChebyshevT::polyList_
protected

Definition at line 109 of file ChebyshevT.hpp.


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