download
raw
482 Bytes
import { Interpolant } from '../Interpolant.js';
/**
*
* Interpolant that evaluates to the sample value at the position preceding
* the parameter.
*/
class DiscreteInterpolant extends Interpolant {
constructor( parameterPositions, sampleValues, sampleSize, resultBuffer ) {
super( parameterPositions, sampleValues, sampleSize, resultBuffer );
}
interpolate_( i1 /*, t0, t, t1 */ ) {
return this.copySampleValue_( i1 - 1 );
}
}
export { DiscreteInterpolant };

Xet Storage Details

Size:
482 Bytes
·
Xet hash:
61158656209d5aa22c648820d401ac87a868dee48d9ef47e52276bdaa1644e27

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.