Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::PolyFitAnalysis< C > Struct Template Reference

Structure holding residual analysis for polynomial fits. More...

#include <tpl_multi_polynomial.H>

Collaboration diagram for Aleph::PolyFitAnalysis< C >:
[legend]

Public Attributes

double r_squared = 0.0
 Coefficient of determination (0–1)
 
double rmse = 0.0
 Root mean squared error.
 
double rss = 0.0
 Residual sum of squares.
 
double tss = 0.0
 Total sum of squares.
 
double ess = 0.0
 Explained sum of squares.
 
Array< C > residuals
 Per-point residuals.
 
double mean_y = 0.0
 Mean of y values.
 

Detailed Description

template<typename C>
struct Aleph::PolyFitAnalysis< C >

Structure holding residual analysis for polynomial fits.

Provides statistics about the quality of a least-squares fit:

  • R²: coefficient of determination
  • RMSE: root mean squared error
  • Residuals: per-point deviations
  • Sum of squares: TSS, RSS, ESS
Template Parameters
CCoefficient type.

Definition at line 4377 of file tpl_multi_polynomial.H.

Member Data Documentation

◆ ess

template<typename C >
double Aleph::PolyFitAnalysis< C >::ess = 0.0

Explained sum of squares.

Definition at line 4383 of file tpl_multi_polynomial.H.

Referenced by Aleph::analyze_fit(), TEST(), TEST(), and TEST().

◆ mean_y

template<typename C >
double Aleph::PolyFitAnalysis< C >::mean_y = 0.0

Mean of y values.

Definition at line 4385 of file tpl_multi_polynomial.H.

Referenced by Aleph::analyze_fit(), TEST(), and TEST().

◆ r_squared

template<typename C >
double Aleph::PolyFitAnalysis< C >::r_squared = 0.0

Coefficient of determination (0–1)

Definition at line 4379 of file tpl_multi_polynomial.H.

Referenced by Aleph::analyze_fit(), TEST(), TEST(), TEST(), and TEST().

◆ residuals

template<typename C >
Array<C> Aleph::PolyFitAnalysis< C >::residuals

Per-point residuals.

Definition at line 4384 of file tpl_multi_polynomial.H.

Referenced by Aleph::analyze_fit(), TEST(), TEST(), and TEST().

◆ rmse

template<typename C >
double Aleph::PolyFitAnalysis< C >::rmse = 0.0

Root mean squared error.

Definition at line 4380 of file tpl_multi_polynomial.H.

Referenced by Aleph::analyze_fit(), TEST(), TEST(), TEST(), and TEST().

◆ rss

template<typename C >
double Aleph::PolyFitAnalysis< C >::rss = 0.0

Residual sum of squares.

Definition at line 4381 of file tpl_multi_polynomial.H.

Referenced by Aleph::analyze_fit(), TEST(), TEST(), and TEST().

◆ tss

template<typename C >
double Aleph::PolyFitAnalysis< C >::tss = 0.0

Total sum of squares.

Definition at line 4382 of file tpl_multi_polynomial.H.

Referenced by Aleph::analyze_fit(), TEST(), TEST(), TEST(), and TEST().


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