A library for working with phylogenetic and population genetic data.
v0.32.0
LinearFunction Struct Reference

#include <genesis/utils/math/regression/slr.hpp>

Detailed Description

Data structer to keep the two parameters of a linear function: its slope, and its intercept.

It also has a function to calcualte y = slope * x + intercept.

Definition at line 54 of file slr.hpp.

Public Member Functions

double y (double x) const
 

Public Attributes

double intercept
 
double slope
 

Member Function Documentation

◆ y()

double y ( double  x) const
inline

Definition at line 59 of file slr.hpp.

Member Data Documentation

◆ intercept

double intercept

Definition at line 57 of file slr.hpp.

◆ slope

double slope

Definition at line 56 of file slr.hpp.


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