Skip to content

Commit 235e4d8

Browse files
committed
fix(xWhittakerSmoother): ensure baseline is initialized as Float64Array
1 parent a54bdb5 commit 235e4d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/x/xWhittakerSmoother.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function xWhittakerSmoother(
7070

7171
let iteration = 0;
7272
let delta = Infinity;
73-
let baseline = yData.slice();
73+
let baseline = xEnsureFloat64(yData);
7474
const upperTriangularNonZeros = createSystemMatrix(size, lambda);
7575
while (iteration < maxIterations && delta > tolerance) {
7676
const { leftHandSide, rightHandSide } = addWeights(

0 commit comments

Comments
 (0)