File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export default class KernelDensityEstimator {
55
55
const np = n * p
56
56
const np_l = Math . floor ( np )
57
57
const np_h = Math . ceil ( np )
58
- return k [ np_l ] + ( np_h - np_l ) * ( k [ np_h ] - k [ np_l ] )
58
+ return k [ np_l ] + ( np - np_l ) * ( k [ np_h ] - k [ np_l ] )
59
59
}
60
60
const sgm = Math . min ( std , ( q ( 0.75 ) - q ( 0.25 ) ) / 1.34 )
61
61
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export default class NadarayaWatson {
38
38
const np = n * p
39
39
const np_l = Math . floor ( np )
40
40
const np_h = Math . ceil ( np )
41
- return k [ np_l ] + ( np_h - np_l ) * ( k [ np_h ] - k [ np_l ] )
41
+ return k [ np_l ] + ( np - np_l ) * ( k [ np_h ] - k [ np_l ] )
42
42
}
43
43
const sgm = Math . min ( std , ( q ( 0.75 ) - q ( 0.25 ) ) / 1.34 )
44
44
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export default class PriestleyChao {
37
37
const np = n * p
38
38
const np_l = Math . floor ( np )
39
39
const np_h = Math . ceil ( np )
40
- return k [ np_l ] + ( np_h - np_l ) * ( k [ np_h ] - k [ np_l ] )
40
+ return k [ np_l ] + ( np - np_l ) * ( k [ np_h ] - k [ np_l ] )
41
41
}
42
42
const sgm = Math . min ( std , ( q ( 0.75 ) - q ( 0.25 ) ) / 1.34 )
43
43
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export default class TukeysFences {
26
26
const np = n * p
27
27
const np_l = Math . floor ( np )
28
28
const np_h = Math . ceil ( np )
29
- return x [ np_l ] + ( np_h - np_l ) * ( x [ np_h ] - x [ np_l ] )
29
+ return x [ np_l ] + ( np - np_l ) * ( x [ np_h ] - x [ np_l ] )
30
30
}
31
31
32
32
const q1 = q ( 0.25 )
You can’t perform that action at this time.
0 commit comments