SAGA API v9.10
Loading...
Searching...
No Matches
CSG_Trend Class Reference

#include <mat_tools.h>

Public Member Functions

 CSG_Trend (void)
bool Set_Formula (const CSG_String &Formula)
CSG_String Get_Formula (int Type=SG_TREND_STRING_Complete)
int Get_Parameter_Count (void) const
double * Get_Parameters (void) const
bool Init_Parameter (const SG_Char &Variable, double Value)
void Clr_Data (void)
bool Add_Data (double x, double y)
void Set_Data (double *x, double *y, int n, bool bAdd=false)
void Set_Data (const CSG_Points &Data, bool bAdd=false)
int Get_Data_Count (void) const
double Get_Data_X (int i) const
double Get_Data_XMin (void)
double Get_Data_XMax (void)
CSG_Simple_StatisticsGet_Data_XStats (void)
double Get_Data_Y (int i) const
double Get_Data_YMin (void)
double Get_Data_YMax (void)
CSG_Simple_StatisticsGet_Data_YStats (void)
bool Set_Max_Iterations (int Iterations)
int Get_Max_Iterations (void) const
bool Set_Max_Lambda (double Lambda)
double Get_Max_Lambda (void) const
bool Get_Trend (double *x, double *y, int n, const CSG_String &Formula)
bool Get_Trend (const CSG_Points &Data, const CSG_String &Formula)
bool Get_Trend (const CSG_String &Formula)
bool Get_Trend (void)
bool is_Okay (void) const
CSG_String Get_Error (void)
double Get_ChiSquare (void) const
double Get_R2 (void) const
double Get_Value (double x) const

Detailed Description

Definition at line 1991 of file mat_tools.h.

Constructor & Destructor Documentation

◆ CSG_Trend()

CSG_Trend::CSG_Trend ( void )

Definition at line 128 of file mat_trend.cpp.

Member Function Documentation

◆ Add_Data()

bool CSG_Trend::Add_Data ( double x,
double y )

Definition at line 226 of file mat_trend.cpp.

Referenced by Set_Data(), and Set_Data().

◆ Clr_Data()

void CSG_Trend::Clr_Data ( void )

◆ Get_ChiSquare()

double CSG_Trend::Get_ChiSquare ( void ) const
inline

Definition at line 2031 of file mat_tools.h.

◆ Get_Data_Count()

int CSG_Trend::Get_Data_Count ( void ) const
inline

Definition at line 2007 of file mat_tools.h.

Referenced by Get_Formula(), and Get_Trend().

◆ Get_Data_X()

double CSG_Trend::Get_Data_X ( int i) const
inline

Definition at line 2008 of file mat_tools.h.

Referenced by Get_Trend().

◆ Get_Data_XMax()

double CSG_Trend::Get_Data_XMax ( void )
inline

Definition at line 2010 of file mat_tools.h.

◆ Get_Data_XMin()

double CSG_Trend::Get_Data_XMin ( void )
inline

Definition at line 2009 of file mat_tools.h.

◆ Get_Data_XStats()

CSG_Simple_Statistics & CSG_Trend::Get_Data_XStats ( void )
inline

Definition at line 2011 of file mat_tools.h.

◆ Get_Data_Y()

double CSG_Trend::Get_Data_Y ( int i) const
inline

Definition at line 2012 of file mat_tools.h.

Referenced by Get_Trend().

◆ Get_Data_YMax()

double CSG_Trend::Get_Data_YMax ( void )
inline

Definition at line 2014 of file mat_tools.h.

◆ Get_Data_YMin()

double CSG_Trend::Get_Data_YMin ( void )
inline

Definition at line 2013 of file mat_tools.h.

◆ Get_Data_YStats()

CSG_Simple_Statistics & CSG_Trend::Get_Data_YStats ( void )
inline

Definition at line 2015 of file mat_tools.h.

◆ Get_Error()

CSG_String CSG_Trend::Get_Error ( void )

Definition at line 367 of file mat_trend.cpp.

References _TL, and CSG_String::Printf().

◆ Get_Formula()

◆ Get_Max_Iterations()

int CSG_Trend::Get_Max_Iterations ( void ) const
inline

Definition at line 2018 of file mat_tools.h.

◆ Get_Max_Lambda()

double CSG_Trend::Get_Max_Lambda ( void ) const
inline

Definition at line 2020 of file mat_tools.h.

◆ Get_Parameter_Count()

int CSG_Trend::Get_Parameter_Count ( void ) const
inline

Definition at line 1999 of file mat_tools.h.

◆ Get_Parameters()

double * CSG_Trend::Get_Parameters ( void ) const
inline

Definition at line 2000 of file mat_tools.h.

◆ Get_R2()

double CSG_Trend::Get_R2 ( void ) const
inline

Definition at line 2032 of file mat_tools.h.

Referenced by Get_Formula().

◆ Get_Trend() [1/4]

bool CSG_Trend::Get_Trend ( const CSG_Points & Data,
const CSG_String & Formula )

Definition at line 281 of file mat_trend.cpp.

References Get_Trend(), CSG_String::is_Empty(), Set_Data(), and Set_Formula().

◆ Get_Trend() [2/4]

bool CSG_Trend::Get_Trend ( const CSG_String & Formula)

Definition at line 289 of file mat_trend.cpp.

References Get_Trend(), CSG_String::is_Empty(), and Set_Formula().

◆ Get_Trend() [3/4]

bool CSG_Trend::Get_Trend ( double * x,
double * y,
int n,
const CSG_String & Formula )

Definition at line 273 of file mat_trend.cpp.

References Get_Trend(), CSG_String::is_Empty(), Set_Data(), and Set_Formula().

◆ Get_Trend() [4/4]

bool CSG_Trend::Get_Trend ( void )

◆ Get_Value()

double CSG_Trend::Get_Value ( double x) const
inline

Definition at line 2034 of file mat_tools.h.

◆ Init_Parameter()

bool CSG_Trend::Init_Parameter ( const SG_Char & Variable,
double Value )

Definition at line 168 of file mat_trend.cpp.

References SG_Char.

◆ is_Okay()

bool CSG_Trend::is_Okay ( void ) const
inline

Definition at line 2027 of file mat_tools.h.

◆ Set_Data() [1/2]

void CSG_Trend::Set_Data ( const CSG_Points & Data,
bool bAdd = false )

Definition at line 212 of file mat_trend.cpp.

References Add_Data(), Clr_Data(), and CSG_Points::Get_Count().

◆ Set_Data() [2/2]

void CSG_Trend::Set_Data ( double * x,
double * y,
int n,
bool bAdd = false )

Definition at line 198 of file mat_trend.cpp.

References Add_Data(), and Clr_Data().

Referenced by Get_Trend(), and Get_Trend().

◆ Set_Formula()

bool CSG_Trend::Set_Formula ( const CSG_String & Formula)

Definition at line 143 of file mat_trend.cpp.

References CSG_String::Length().

Referenced by Get_Trend(), Get_Trend(), and Get_Trend().

◆ Set_Max_Iterations()

bool CSG_Trend::Set_Max_Iterations ( int Iterations)

Definition at line 242 of file mat_trend.cpp.

◆ Set_Max_Lambda()

bool CSG_Trend::Set_Max_Lambda ( double Lambda)

Definition at line 255 of file mat_trend.cpp.


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