40#ifndef H_EXPLORAGRAM_OPTIMAL_TRANSPORT_LINEAR_LEAST_SQUARES_H 
   41#define H_EXPLORAGRAM_OPTIMAL_TRANSPORT_LINEAR_LEAST_SQUARES_H 
  100    double eval(
const double* p) 
const;
 
  137    static const int MAX_DIM = 10;
 
  144    double Atb_[MAX_DIM];
 
  145    double eqn_[MAX_DIM];
 
 
Computes the linear least squares regression of a function evaluated in 3d.
 
void add_point_degree_1(const double *p, double v)
Implementation of add_point() for degree 1.
 
LinearLeastSquares(index_t degree)
Constructs a new LinearLeastSquares.
 
void eval_basis(const double *p, double *b) const
Evaluates the function basis at a given point.
 
void add_point_degree_2(const double *p, double v)
Implementation of add_point() for degree 2.
 
double eval(const double *p) const
Evaluates the least-squares linear estimate at a given point.
 
void end()
Ends the current computation.
 
void begin()
Starts a new computation.
 
void add_point(const double *p, double v)
Adds a sample to the current computation.
 
index_t dim() const
Gets the dimension of the function basis.
 
#define EXPLORAGRAM_API
Linkage declaration for exploragram symbols.
 
Included by all headers in exploragram.
 
Global Vorpaline namespace.
 
geo_index_t index_t
The type for storing and manipulating indices.