33 const label n = floor((
x - start_)/period_);
34 const scalar xStar =
x - start_ -
n*period_;
35 return value_->value(xStar);
46 const label n1 = floor((x1 - start_)/period_);
47 const label n2 = floor((x2 - start_)/period_);
48 const scalar x1Star = x1 - start_ - n1*period_;
49 const scalar x2Star = x2 - start_ - n2*period_;
51 (n2 - n1)*value_->integral(0, period_)
52 + value_->integral(x1Star, x2Star);
virtual Type integral(const scalar x1, const scalar x2) const
Integrate between two values.
virtual Type value(const scalar x) const
Return value.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.