remove overridden WeightMatrix method
parent
bc1b949f8b
commit
7799fd5a6a
|
@ -59,15 +59,6 @@ Weights Chebyshev2::CalculateWeights(size_t N, double x, double a, double b) {
|
||||||
return weights / d;
|
return weights / d;
|
||||||
}
|
}
|
||||||
|
|
||||||
Matrix Chebyshev2::WeightMatrix(size_t N, const Vector& X, double a, double b) {
|
|
||||||
// Chebyshev points go from 0 to N, hence N+1 points.
|
|
||||||
Matrix W(X.size(), N);
|
|
||||||
for (int i = 0; i < X.size(); i++) {
|
|
||||||
W.row(i) = CalculateWeights(N, X(i), a, b);
|
|
||||||
}
|
|
||||||
return W;
|
|
||||||
}
|
|
||||||
|
|
||||||
Weights Chebyshev2::DerivativeWeights(size_t N, double x, double a, double b) {
|
Weights Chebyshev2::DerivativeWeights(size_t N, double x, double a, double b) {
|
||||||
// Allocate space for weights
|
// Allocate space for weights
|
||||||
Weights weightDerivatives(N);
|
Weights weightDerivatives(N);
|
||||||
|
|
|
@ -97,16 +97,6 @@ class GTSAM_EXPORT Chebyshev2 : public Basis<Chebyshev2> {
|
||||||
static Weights CalculateWeights(size_t N, double x, double a = -1,
|
static Weights CalculateWeights(size_t N, double x, double a = -1,
|
||||||
double b = 1);
|
double b = 1);
|
||||||
|
|
||||||
/**
|
|
||||||
* Calculate weights for all x in vector X.
|
|
||||||
* Returns M*N matrix where M is the size of the vector X,
|
|
||||||
* and N is the number of basis functions.
|
|
||||||
*
|
|
||||||
* Overriden for Chebyshev2.
|
|
||||||
*/
|
|
||||||
static Matrix WeightMatrix(size_t N, const Vector& X, double a = -1,
|
|
||||||
double b = 1);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Evaluate derivative of barycentric weights.
|
* Evaluate derivative of barycentric weights.
|
||||||
* This is easy and efficient via the DifferentiationMatrix.
|
* This is easy and efficient via the DifferentiationMatrix.
|
||||||
|
|
Loading…
Reference in New Issue