#include "points.h"
#include "params.h"
Go to the source code of this file.
◆ MedianOfCircularValues()
Definition at line 111 of file linlsq.h.
113 T halfrange =
static_cast<T
>(modulus / 2);
114 int num_elements = v->
size();
115 for (
int i = 0; i < num_elements; ++i) {
116 stats.
add((*v)[i], (*v)[i] + halfrange);
120 for (
int i = 0; i < num_elements; ++i) {
121 (*v)[i] += halfrange;
126 for (
int i = 0; i < num_elements; ++i) {
127 (*v)[i] -= halfrange;
130 return (*v)[median_index];
double y_variance() const
void add(double x, double y)
double x_variance() const
int choose_nth_item(int target_index)