1#ifndef WEIGHTEDLOWESS_COMPUTE_HPP
2#define WEIGHTEDLOWESS_COMPUTE_HPP
35template<
typename Data_>
37 std::vector<Data_> rbuffer;
38 if (robust_weights == NULL) {
39 rbuffer.resize(num_points);
40 robust_weights = rbuffer.data();
42 internal::fit_trend(num_points, x, windows, y, fitted, robust_weights, opt);
61template<
typename Data_>
62void compute(
size_t num_points,
const Data_* x,
const Data_* y, Data_* fitted, Data_* robust_weights,
const Options<Data_>& opt) {
64 compute(num_points, x, win, y, fitted, robust_weights, opt);
71template<
typename Data_>
104template<
typename Data_>
Namespace for LOWESS functions.
Definition compute.hpp:14
void compute(size_t num_points, const Data_ *x, const PrecomputedWindows< Data_ > &windows, const Data_ *y, Data_ *fitted, Data_ *robust_weights, const Options< Data_ > &opt)
Definition compute.hpp:36
PrecomputedWindows< Data_ > define_windows(size_t num_points, const Data_ *x, const Options< Data_ > &opt)
Definition window.hpp:263
Options for compute().
Definition Options.hpp:17
Precomputed windows for LOWESS smoothing.
Definition window.hpp:230
Store the smoothing results.
Definition compute.hpp:72
Results(size_t n)
Definition compute.hpp:76
std::vector< Data_ > fitted
Definition compute.hpp:81
std::vector< Data_ > robust_weights
Definition compute.hpp:86