36 BPF(std::vector<Real> xPoints, std::vector<Real> yPoints) {
37 init(xPoints,yPoints);
39 void init(std::vector<Real> xPoints, std::vector<Real> yPoints) {
47 throw EssentiaException(
"BPF: There are less than 2 points, which is the minimum required for the break-point function");
50 for (
int i=1; i<int(
_xPoints.size()); ++i) {
58 for (
int j=1; j<int(
_xPoints.size()); ++j) {
73 std::vector<Real>::size_type j = 0;
void init(std::vector< Real > xPoints, std::vector< Real > yPoints)
Definition: bpfutil.h:39
BPF()
Definition: bpfutil.h:34
std::vector< Real > _yPoints
Definition: bpfutil.h:30
std::vector< Real > _xPoints
Definition: bpfutil.h:29
std::vector< Real > _slopes
Definition: bpfutil.h:31
float operator()(float x)
Definition: bpfutil.h:64
BPF(std::vector< Real > xPoints, std::vector< Real > yPoints)
Definition: bpfutil.h:36
Definition: algorithm.h:28