@zukhruf/statistics 0.8.198 → 0.8.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -18
- package/dist/bootstrap/bootstrap-interval.d.ts +10 -0
- package/dist/bootstrap/bootstrap-interval.d.ts.map +1 -0
- package/dist/bootstrap/bootstrap-interval.js +13 -0
- package/dist/bootstrap/bootstrap-interval.js.map +1 -0
- package/dist/bootstrap/iid-bootstrap.d.ts +4 -3
- package/dist/bootstrap/iid-bootstrap.d.ts.map +1 -1
- package/dist/bootstrap/iid-bootstrap.js +16 -4
- package/dist/bootstrap/iid-bootstrap.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,22 +38,22 @@ mean([1, 2, 3, 4]); // 2.5, as numpy.mean(a)
|
|
|
38
38
|
nanmean([1, NaN, 3]); // 2, as numpy.nanmean(a)
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
| Export | NumPy, SciPy or arch | What it does
|
|
42
|
-
| -------------------------- | ---------------------------------------------------------------------------------- |
|
|
43
|
-
| `sum` | `numpy.sum` of a 1-D float64 array | The pairwise sum of NumPy: blocks of up to 128 values in 8 accumulators, and two halves for more values. It starts from 0, so values of −0 give 0. No values give 0.
|
|
44
|
-
| `mean` | `numpy.mean` of a 1-D float64 array | `sum` divided by the number of values. No values give NaN.
|
|
45
|
-
| `nanmean` | `numpy.nanmean` of a 1-D float64 array | Each NaN becomes 0, `sum` adds all the values, and the sum is divided by the number of values that are not NaN. A `mean` of only the values that are not NaN can give other last bits. No values, or only NaN values, give NaN.
|
|
46
|
-
| `std` | `numpy.std` of a 1-D float64 array, with its `ddof` | The square root of the `sum` of the squared deviations from the `mean`, divided by n − `ddof`. `ddof` is 0 by default (the population standard deviation), and `ddof: 1` gives the sample standard deviation. No values give NaN. A `ddof` of n or more divides by 0: NaN or Infinity, as NumPy gives them.
|
|
47
|
-
| `QuantileMethod` | the `method` of `numpy.quantile` | A rule that gives the value at the quantile `q` of sorted values: `of(sorted, q)`. `q` is from 0 to 1. A `q` out of that range, or no values, throws a `RangeError`.
|
|
48
|
-
| `Lower` | `method='lower'` | The value at the index `floor((n − 1)q)`.
|
|
49
|
-
| `Higher` | `method='higher'` | The value at the index `ceil((n − 1)q)`.
|
|
50
|
-
| `Linear` | `method='linear'`, the default of NumPy | The line between the two values around the index `(n − 1)q`, computed as NumPy's `_lerp` computes it, so the bits are NumPy's. d3-array's `quantileSorted` gives other bits for 1 value of 10.
|
|
51
|
-
| `InvertedCdf` | `method='inverted_cdf'` | The nearest rank: the value at the index `ceil(nq) − 1`, and the first value when `q` is 0.
|
|
52
|
-
| `ConfidenceInterval` | the `ConfidenceInterval` of `scipy.stats.bootstrap` | `low` and `high`. `isAbove(value)` is true when `low > value`, and `isBelow(value)` is true when `high < value`: the whole interval lies on one side of the value.
|
|
53
|
-
| `DifferenceInterval` | the `ConfidenceInterval` of `scipy.stats.bootstrap`, with the observed statistic | A `ConfidenceInterval` of (change − baseline) with `observed`: the difference that the data gives. `new DifferenceInterval(low, high, observed)` makes one. It is data only: it has no verdict. mteb's `ChangeVerdict`, the `Interval` of relevance-filtering and the `Interval` of event-detection hold the same three values. `@zukhruf/evals` gives it in each verdict of two runs.
|
|
54
|
-
| `ConfidenceIntervalMethod` | the `method` of `scipy.stats.bootstrap` | A rule that gives the confidence interval of a bootstrap distribution: `of(distribution)`, and states its `level`, the share of the distribution that the interval covers, such as 0.95 (`confidence_level` of SciPy). `PercentileInterval` is one. A caller with a rule of its own writes another.
|
|
55
|
-
| `PercentileInterval` | `method='percentile'` of `scipy.stats.bootstrap` | The `low` and the `high` quantile of a bootstrap distribution, both read with one quantile method, as `numpy.percentile` reads them. It sorts a copy, so the distribution does not change. Its `level` is `high` minus `low`.
|
|
56
|
-
| `IidBootstrap` | `arch.bootstrap.IIDBootstrap`; `n_resamples` and `bootstrap_distribution` of SciPy | Draws `nResamples` resamples of the data, with replacement. `distribution(data, statistic)` gives the statistic of each resample. `interval(data, statistic, method)` gives the
|
|
41
|
+
| Export | NumPy, SciPy or arch | What it does |
|
|
42
|
+
| -------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
43
|
+
| `sum` | `numpy.sum` of a 1-D float64 array | The pairwise sum of NumPy: blocks of up to 128 values in 8 accumulators, and two halves for more values. It starts from 0, so values of −0 give 0. No values give 0. |
|
|
44
|
+
| `mean` | `numpy.mean` of a 1-D float64 array | `sum` divided by the number of values. No values give NaN. |
|
|
45
|
+
| `nanmean` | `numpy.nanmean` of a 1-D float64 array | Each NaN becomes 0, `sum` adds all the values, and the sum is divided by the number of values that are not NaN. A `mean` of only the values that are not NaN can give other last bits. No values, or only NaN values, give NaN. |
|
|
46
|
+
| `std` | `numpy.std` of a 1-D float64 array, with its `ddof` | The square root of the `sum` of the squared deviations from the `mean`, divided by n − `ddof`. `ddof` is 0 by default (the population standard deviation), and `ddof: 1` gives the sample standard deviation. No values give NaN. A `ddof` of n or more divides by 0: NaN or Infinity, as NumPy gives them. |
|
|
47
|
+
| `QuantileMethod` | the `method` of `numpy.quantile` | A rule that gives the value at the quantile `q` of sorted values: `of(sorted, q)`. `q` is from 0 to 1. A `q` out of that range, or no values, throws a `RangeError`. |
|
|
48
|
+
| `Lower` | `method='lower'` | The value at the index `floor((n − 1)q)`. |
|
|
49
|
+
| `Higher` | `method='higher'` | The value at the index `ceil((n − 1)q)`. |
|
|
50
|
+
| `Linear` | `method='linear'`, the default of NumPy | The line between the two values around the index `(n − 1)q`, computed as NumPy's `_lerp` computes it, so the bits are NumPy's. d3-array's `quantileSorted` gives other bits for 1 value of 10. |
|
|
51
|
+
| `InvertedCdf` | `method='inverted_cdf'` | The nearest rank: the value at the index `ceil(nq) − 1`, and the first value when `q` is 0. |
|
|
52
|
+
| `ConfidenceInterval` | the `ConfidenceInterval` of `scipy.stats.bootstrap` | `low` and `high`. `isAbove(value)` is true when `low > value`, and `isBelow(value)` is true when `high < value`: the whole interval lies on one side of the value. |
|
|
53
|
+
| `DifferenceInterval` | the `ConfidenceInterval` of `scipy.stats.bootstrap`, with the observed statistic | A `ConfidenceInterval` of (change − baseline) with `observed`: the difference that the data gives. `new DifferenceInterval(low, high, observed)` makes one. It is data only: it has no verdict. mteb's `ChangeVerdict`, the `Interval` of relevance-filtering and the `Interval` of event-detection hold the same three values. `@zukhruf/evals` gives it in each verdict of two runs. |
|
|
54
|
+
| `ConfidenceIntervalMethod` | the `method` of `scipy.stats.bootstrap` | A rule that gives the confidence interval of a bootstrap distribution: `of(distribution)`, and states its `level`, the share of the distribution that the interval covers, such as 0.95 (`confidence_level` of SciPy). `PercentileInterval` is one. A caller with a rule of its own writes another. |
|
|
55
|
+
| `PercentileInterval` | `method='percentile'` of `scipy.stats.bootstrap` | The `low` and the `high` quantile of a bootstrap distribution, both read with one quantile method, as `numpy.percentile` reads them. It sorts a copy, so the distribution does not change. Its `level` is `high` minus `low`. |
|
|
56
|
+
| `IidBootstrap` | `arch.bootstrap.IIDBootstrap`; `n_resamples` and `bootstrap_distribution` of SciPy | Draws `nResamples` resamples of the data, with replacement. `distribution(data, statistic)` gives the statistic of each resample that has one: a statistic that gives `undefined` for a resample, such as a ratio whose resample has no whole, leaves that resample out, as R boot's `boot.ci` keeps only the finite statistics. `interval(data, statistic, method)` gives the `BootstrapInterval` that a `ConfidenceIntervalMethod` reads from that distribution, with `resamples`, the count it kept, and `nResamples`; when no resample has a value it is `undefined`, and a statistic that always gives a number always gives an interval. Data with no items throws a `RangeError`. |
|
|
57
57
|
|
|
58
58
|
The random generator is an input. `randomIndex(n)` gives an index from 0 to n − 1. Each item of a resample takes one call, in order, resample by resample, as a Python loop over the same generator does. So `(n) => random.randrange(n)` of python-random draws as CPython's `random.Random`, and a port of NumPy's `default_rng` draws as `integers(0, n, n)` when it draws one index for each call. An index out of range throws a `RangeError`.
|
|
59
59
|
|
|
@@ -166,13 +166,23 @@ class IidBootstrap {
|
|
|
166
166
|
});
|
|
167
167
|
distribution<T>(
|
|
168
168
|
data: readonly T[],
|
|
169
|
-
statistic: (resample: readonly T[]) => number,
|
|
169
|
+
statistic: (resample: readonly T[]) => number | undefined,
|
|
170
170
|
): number[];
|
|
171
171
|
interval<T>(
|
|
172
172
|
data: readonly T[],
|
|
173
173
|
statistic: (resample: readonly T[]) => number,
|
|
174
174
|
method: ConfidenceIntervalMethod,
|
|
175
|
-
):
|
|
175
|
+
): BootstrapInterval;
|
|
176
|
+
interval<T>(
|
|
177
|
+
data: readonly T[],
|
|
178
|
+
statistic: (resample: readonly T[]) => number | undefined,
|
|
179
|
+
method: ConfidenceIntervalMethod,
|
|
180
|
+
): BootstrapInterval | undefined;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
class BootstrapInterval extends ConfidenceInterval {
|
|
184
|
+
readonly resamples: number;
|
|
185
|
+
readonly nResamples: number;
|
|
176
186
|
}
|
|
177
187
|
```
|
|
178
188
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ConfidenceInterval } from '../interval/confidence-interval.ts';
|
|
2
|
+
export declare class BootstrapInterval extends ConfidenceInterval {
|
|
3
|
+
readonly resamples: number;
|
|
4
|
+
readonly nResamples: number;
|
|
5
|
+
constructor(low: number, high: number, { resamples, nResamples, }: {
|
|
6
|
+
readonly resamples: number;
|
|
7
|
+
readonly nResamples: number;
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=bootstrap-interval.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap-interval.d.ts","sourceRoot":"","sources":["../../src/bootstrap/bootstrap-interval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAIxE,qBAAa,iBAAkB,SAAQ,kBAAkB;IACvD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,YACE,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,EACE,SAAS,EACT,UAAU,GACX,EAAE;QAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;KAAE,EAK/D;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ConfidenceInterval } from '../interval/confidence-interval.js';
|
|
2
|
+
// The confidence interval of a bootstrap, with the number of resamples it
|
|
3
|
+
// comes from (those whose statistic has a value) and the nResamples drawn.
|
|
4
|
+
export class BootstrapInterval extends ConfidenceInterval {
|
|
5
|
+
resamples;
|
|
6
|
+
nResamples;
|
|
7
|
+
constructor(low, high, { resamples, nResamples, }) {
|
|
8
|
+
super(low, high);
|
|
9
|
+
this.resamples = resamples;
|
|
10
|
+
this.nResamples = nResamples;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=bootstrap-interval.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap-interval.js","sourceRoot":"","sources":["../../src/bootstrap/bootstrap-interval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,0EAA0E;AAC1E,2EAA2E;AAC3E,MAAM,OAAO,iBAAkB,SAAQ,kBAAkB;IAC9C,SAAS,CAAS;IAClB,UAAU,CAAS;IAE5B,YACE,GAAW,EACX,IAAY,EACZ,EACE,SAAS,EACT,UAAU,GACkD;QAE9D,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { ConfidenceIntervalMethod } from '../interval/confidence-interval-method.ts';
|
|
2
|
-
import
|
|
2
|
+
import { BootstrapInterval } from './bootstrap-interval.ts';
|
|
3
3
|
export declare class IidBootstrap {
|
|
4
4
|
#private;
|
|
5
5
|
constructor({ nResamples, randomIndex, }: {
|
|
6
6
|
readonly nResamples: number;
|
|
7
7
|
readonly randomIndex: (n: number) => number;
|
|
8
8
|
});
|
|
9
|
-
distribution<T>(data: readonly T[], statistic: (resample: readonly T[]) => number): number[];
|
|
10
|
-
interval<T>(data: readonly T[], statistic: (resample: readonly T[]) => number, method: ConfidenceIntervalMethod):
|
|
9
|
+
distribution<T>(data: readonly T[], statistic: (resample: readonly T[]) => number | undefined): number[];
|
|
10
|
+
interval<T>(data: readonly T[], statistic: (resample: readonly T[]) => number, method: ConfidenceIntervalMethod): BootstrapInterval;
|
|
11
|
+
interval<T>(data: readonly T[], statistic: (resample: readonly T[]) => number | undefined, method: ConfidenceIntervalMethod): BootstrapInterval | undefined;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=iid-bootstrap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iid-bootstrap.d.ts","sourceRoot":"","sources":["../../src/bootstrap/iid-bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,
|
|
1
|
+
{"version":3,"file":"iid-bootstrap.d.ts","sourceRoot":"","sources":["../../src/bootstrap/iid-bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAM5D,qBAAa,YAAY;;IAIvB,YAAY,EACV,UAAU,EACV,WAAW,GACZ,EAAE;QACD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;QAC5B,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;KAC7C,EAGA;IAQD,YAAY,CAAC,CAAC,EACZ,IAAI,EAAE,SAAS,CAAC,EAAE,EAClB,SAAS,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,KAAK,MAAM,GAAG,SAAS,GACxD,MAAM,EAAE,CAMV;IAKD,QAAQ,CAAC,CAAC,EACR,IAAI,EAAE,SAAS,CAAC,EAAE,EAClB,SAAS,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,KAAK,MAAM,EAC7C,MAAM,EAAE,wBAAwB,GAC/B,iBAAiB,CAAC;IACrB,QAAQ,CAAC,CAAC,EACR,IAAI,EAAE,SAAS,CAAC,EAAE,EAClB,SAAS,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,KAAK,MAAM,GAAG,SAAS,EACzD,MAAM,EAAE,wBAAwB,GAC/B,iBAAiB,GAAG,SAAS,CAAC;CAwBlC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BootstrapInterval } from './bootstrap-interval.js';
|
|
1
2
|
// The bootstrap of arch.bootstrap.IIDBootstrap: resamples of independent
|
|
2
3
|
// items, drawn with replacement. The caller's generator gives each random
|
|
3
4
|
// index, one call for each item, in order, resample by resample, as a Python
|
|
@@ -9,15 +10,26 @@ export class IidBootstrap {
|
|
|
9
10
|
this.#nResamples = nResamples;
|
|
10
11
|
this.#randomIndex = randomIndex;
|
|
11
12
|
}
|
|
12
|
-
// The
|
|
13
|
-
//
|
|
13
|
+
// The statistic of each resample that has one, in the order of the
|
|
14
|
+
// resamples. A statistic with no value on a resample, such as a ratio whose
|
|
15
|
+
// resample has no whole, is undefined, and the resample is left out, as R
|
|
16
|
+
// boot's boot.ci keeps only the finite statistics (bootfuns.q of boot
|
|
17
|
+
// 1.3-32: fins <- seq_along(t)[is.finite(t)]). scipy.stats.bootstrap keeps
|
|
18
|
+
// a NaN there, so its interval is NaN.
|
|
14
19
|
distribution(data, statistic) {
|
|
15
20
|
if (data.length === 0)
|
|
16
21
|
throw new RangeError('A bootstrap needs at least one item');
|
|
17
|
-
return Array.from({ length: this.#nResamples }, () => statistic(Array.from({ length: data.length }, () => this.#item(data))));
|
|
22
|
+
return Array.from({ length: this.#nResamples }, () => statistic(Array.from({ length: data.length }, () => this.#item(data)))).filter((value) => value !== undefined);
|
|
18
23
|
}
|
|
19
24
|
interval(data, statistic, method) {
|
|
20
|
-
|
|
25
|
+
const distribution = this.distribution(data, statistic);
|
|
26
|
+
if (distribution.length === 0)
|
|
27
|
+
return undefined;
|
|
28
|
+
const { low, high } = method.of(distribution);
|
|
29
|
+
return new BootstrapInterval(low, high, {
|
|
30
|
+
resamples: distribution.length,
|
|
31
|
+
nResamples: this.#nResamples,
|
|
32
|
+
});
|
|
21
33
|
}
|
|
22
34
|
#item(data) {
|
|
23
35
|
const index = this.#randomIndex(data.length);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iid-bootstrap.js","sourceRoot":"","sources":["../../src/bootstrap/iid-bootstrap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"iid-bootstrap.js","sourceRoot":"","sources":["../../src/bootstrap/iid-bootstrap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,yEAAyE;AACzE,0EAA0E;AAC1E,6EAA6E;AAC7E,2CAA2C;AAC3C,MAAM,OAAO,YAAY;IACd,WAAW,CAAS;IACpB,YAAY,CAAwB;IAE7C,YAAY,EACV,UAAU,EACV,WAAW,GAIZ;QACC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;IAClC,CAAC;IAED,mEAAmE;IACnE,4EAA4E;IAC5E,0EAA0E;IAC1E,sEAAsE;IACtE,2EAA2E;IAC3E,uCAAuC;IACvC,YAAY,CACV,IAAkB,EAClB,SAAyD;QAEzD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YACnB,MAAM,IAAI,UAAU,CAAC,qCAAqC,CAAC,CAAC;QAC9D,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,CACnD,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CACvE,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC;IAC3C,CAAC;IAeD,QAAQ,CACN,IAAkB,EAClB,SAAyD,EACzD,MAAgC;QAEhC,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QACxD,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,SAAS,CAAC;QAChD,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC;QAC9C,OAAO,IAAI,iBAAiB,CAAC,GAAG,EAAE,IAAI,EAAE;YACtC,SAAS,EAAE,YAAY,CAAC,MAAM;YAC9B,UAAU,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAI,IAAkB;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,IAAI,KAAK,SAAS;YACpB,MAAM,IAAI,UAAU,CAClB,+BAA+B,IAAI,CAAC,MAAM,GAAG,CAAC,SAAS,KAAK,EAAE,CAC/D,CAAC;QACJ,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { BootstrapInterval } from './bootstrap/bootstrap-interval.ts';
|
|
1
2
|
export { IidBootstrap } from './bootstrap/iid-bootstrap.ts';
|
|
2
3
|
export { ConfidenceInterval } from './interval/confidence-interval.ts';
|
|
3
4
|
export type { ConfidenceIntervalMethod } from './interval/confidence-interval-method.ts';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,YAAY,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,YAAY,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,YAAY,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,YAAY,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { BootstrapInterval } from './bootstrap/bootstrap-interval.js';
|
|
1
2
|
export { IidBootstrap } from './bootstrap/iid-bootstrap.js';
|
|
2
3
|
export { ConfidenceInterval } from './interval/confidence-interval.js';
|
|
3
4
|
export { DifferenceInterval } from './interval/difference-interval.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zukhruf/statistics",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.200",
|
|
4
4
|
"description": "The percentile bootstrap, NumPy's quantile methods, and the sum, mean, nanmean and std of NumPy in JavaScript, to the last bit: resamples with a random generator that the caller gives, the percentile interval of their statistic, and NumPy's pairwise sum.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"@stdlib/blas-ext-base-gsumpw": "^0.3.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@zukhruf/parameterized-test": "^0.8.
|
|
46
|
+
"@zukhruf/parameterized-test": "^0.8.200"
|
|
47
47
|
}
|
|
48
48
|
}
|