Loading...
Searching...
No Matches
opennn::Correlation Struct Reference
Result of a correlation analysis: model parameters, fit quality, and the method/form used. More...
#include <correlations.h>
Public Types | |
| enum class | Method { Pearson , Spearman } |
| Underlying coefficient family used to compute r. More... | |
| enum class | Form { Identity , Sigmoid , Logarithmic , Exponential , Power } |
| Functional form fitted to the data before computing the coefficient. More... | |
Public Member Functions | |
| Correlation () | |
| void | set_perfect () |
| Sets the correlation to a perfect linear relationship (a=0, b=1, r=1). | |
| void | print () const |
| Prints the correlation parameters and method to stdout. | |
Public Attributes | |
| float | a = NAN |
| float | b = NAN |
| float | r = NAN |
| float | lower_confidence = NAN |
| float | upper_confidence = NAN |
| Method | method = Method::Pearson |
| Form | form = Form::Identity |
Detailed Description
Result of a correlation analysis: model parameters, fit quality, and the method/form used.
Member Enumeration Documentation
◆ Form
|
strong |
◆ Method
|
strong |
Constructor & Destructor Documentation
◆ Correlation()
|
inline |
Member Function Documentation
◆ print()
| void opennn::Correlation::print | ( | ) | const |
Prints the correlation parameters and method to stdout.
◆ set_perfect()
| void opennn::Correlation::set_perfect | ( | ) |
Sets the correlation to a perfect linear relationship (a=0, b=1, r=1).
Member Data Documentation
◆ a
| float opennn::Correlation::a = NAN |
◆ b
| float opennn::Correlation::b = NAN |
◆ form
| Form opennn::Correlation::form = Form::Identity |
◆ lower_confidence
| float opennn::Correlation::lower_confidence = NAN |
◆ method
| Method opennn::Correlation::method = Method::Pearson |
◆ r
| float opennn::Correlation::r = NAN |
◆ upper_confidence
| float opennn::Correlation::upper_confidence = NAN |