LinearFunction Struct Reference

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

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`

.

## Public Member Functions | |

double | y (double x) const |

## Public Attributes | |

double | intercept |

double | slope |

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