#include <linlsq.h>
Definition at line 27 of file linlsq.h.
◆ LLSQ()
◆ add() [1/3]
void LLSQ::add |
( |
const LLSQ & |
other | ) |
|
Definition at line 63 of file linlsq.cpp.
67 total_weight += other.total_weight;
◆ add() [2/3]
void LLSQ::add |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
◆ add() [3/3]
void LLSQ::add |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
weight |
|
) |
| |
Definition at line 54 of file linlsq.cpp.
58 total_weight += weight;
61 sigxx += x * x * weight;
◆ c()
double LLSQ::c |
( |
double |
m | ) |
const |
◆ clear()
◆ count()
int32_t LLSQ::count |
( |
| ) |
const |
|
inline |
Definition at line 42 of file linlsq.h.
44 return static_cast<int>(total_weight + 0.5);
◆ covariance()
double LLSQ::covariance |
( |
| ) |
const |
|
inline |
Definition at line 74 of file linlsq.h.
76 if (total_weight > 0.0)
77 return (sigxy - sigx * sigy / total_weight) / total_weight;
◆ m()
◆ mean_point()
FCOORD LLSQ::mean_point |
( |
| ) |
const |
◆ pearson()
double LLSQ::pearson |
( |
| ) |
const |
◆ remove()
void LLSQ::remove |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
Definition at line 78 of file linlsq.cpp.
83 if (total_weight <= 0.0)
◆ rms()
double LLSQ::rms |
( |
double |
m, |
|
|
double |
c |
|
) |
| const |
Definition at line 123 of file linlsq.cpp.
133 if (total_weight > 0) {
134 error = sigyy +
m * (
m * sigxx + 2 * (
c * sigx - sigxy)) +
c *
135 (total_weight *
c - 2 * sigy);
137 error = std::sqrt(error / total_weight);
◆ rms_orth()
double LLSQ::rms_orth |
( |
const FCOORD & |
dir | ) |
const |
◆ vector_fit()
FCOORD LLSQ::vector_fit |
( |
| ) |
const |
◆ x_variance()
double LLSQ::x_variance |
( |
| ) |
const |
|
inline |
Definition at line 80 of file linlsq.h.
82 if (total_weight > 0.0)
83 return (sigxx - sigx * sigx / total_weight) / total_weight;
◆ y_variance()
double LLSQ::y_variance |
( |
| ) |
const |
|
inline |
Definition at line 86 of file linlsq.h.
88 if (total_weight > 0.0)
89 return (sigyy - sigy * sigy / total_weight) / total_weight;
The documentation for this class was generated from the following files: