SAGA API
v9.6
|
#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_Statistics & | Get_Data_XStats (void) |
double | Get_Data_Y (int i) const |
double | Get_Data_YMin (void) |
double | Get_Data_YMax (void) |
CSG_Simple_Statistics & | Get_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 |
Definition at line 1975 of file mat_tools.h.
CSG_Trend::CSG_Trend | ( | void | ) |
Definition at line 128 of file mat_trend.cpp.
bool CSG_Trend::Add_Data | ( | double | x, |
double | y | ||
) |
Definition at line 226 of file mat_trend.cpp.
Referenced by Set_Data().
void CSG_Trend::Clr_Data | ( | void | ) |
Definition at line 189 of file mat_trend.cpp.
References CSG_Simple_Statistics::Create().
Referenced by Set_Data().
|
inline |
Definition at line 2015 of file mat_tools.h.
|
inline |
Definition at line 1991 of file mat_tools.h.
Referenced by Get_Formula(), and Get_Trend().
|
inline |
Definition at line 1992 of file mat_tools.h.
Referenced by Get_Trend().
|
inline |
Definition at line 1994 of file mat_tools.h.
|
inline |
Definition at line 1993 of file mat_tools.h.
|
inline |
Definition at line 1995 of file mat_tools.h.
|
inline |
Definition at line 1996 of file mat_tools.h.
Referenced by Get_Trend().
|
inline |
Definition at line 1998 of file mat_tools.h.
|
inline |
Definition at line 1997 of file mat_tools.h.
|
inline |
Definition at line 1999 of file mat_tools.h.
CSG_String CSG_Trend::Get_Error | ( | void | ) |
Definition at line 367 of file mat_trend.cpp.
References _TL, CSG_Formula::Get_Error(), and CSG_String::Printf().
CSG_String CSG_Trend::Get_Formula | ( | int | Type = SG_TREND_STRING_Complete | ) |
Definition at line 383 of file mat_trend.cpp.
References CSG_String::Format(), Get_Data_Count(), CSG_Formula::Get_Formula(), Get_R2(), SG_T, SG_TREND_STRING_Compact, SG_TREND_STRING_Complete, SG_TREND_STRING_Formula, SG_TREND_STRING_Formula_Parameters, and SG_TREND_STRING_Function.
|
inline |
Definition at line 2002 of file mat_tools.h.
|
inline |
Definition at line 2004 of file mat_tools.h.
|
inline |
Definition at line 1983 of file mat_tools.h.
|
inline |
Definition at line 1984 of file mat_tools.h.
|
inline |
Definition at line 2016 of file mat_tools.h.
Referenced by Get_Formula().
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().
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().
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().
bool CSG_Trend::Get_Trend | ( | void | ) |
Definition at line 295 of file mat_trend.cpp.
References Get_Data_Count(), Get_Data_X(), Get_Data_Y(), CSG_Formula::Get_Error(), CSG_Formula::Get_Value(), CSG_Formula::Set_Variable(), SG_Get_Square(), and SG_UI_Process_Get_Okay().
Referenced by Get_Trend().
|
inline |
Definition at line 2018 of file mat_tools.h.
bool CSG_Trend::Init_Parameter | ( | const SG_Char & | Variable, |
double | Value | ||
) |
Definition at line 168 of file mat_trend.cpp.
|
inline |
Definition at line 2011 of file mat_tools.h.
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().
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().
bool CSG_Trend::Set_Formula | ( | const CSG_String & | Formula | ) |
Definition at line 143 of file mat_trend.cpp.
References CSG_Formula::Get_Used_Variables(), CSG_String::Length(), and CSG_Formula::Set_Formula().
Referenced by Get_Trend().
bool CSG_Trend::Set_Max_Iterations | ( | int | Iterations | ) |
Definition at line 242 of file mat_trend.cpp.
bool CSG_Trend::Set_Max_Lambda | ( | double | Lambda | ) |
Definition at line 255 of file mat_trend.cpp.