@mark1russell7/rigor-statistics 0.1.7 → 0.1.9
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 +31 -1
- package/build/index.d.ts +100 -3
- package/build/index.d.ts.map +1 -1
- package/build/index.js +271 -56
- package/build/index.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -71,8 +71,35 @@ To vary a conditional dimension, `sliceResponse` needs its parent at a level ins
|
|
|
71
71
|
|
|
72
72
|
The band of a curve is `value ± width × RMSE`, from the held-out error of the folds. On a log scale, the band is a ratio. The band has one width along the curve. It is the mean error of the model.
|
|
73
73
|
|
|
74
|
+
A measure with the field `range` keeps each view inside it, for example `[0, 1]` for a share. `sliceResponse` and `surfaceResponse` move `value`, `low` and `high` to the nearest end. Such a place has the field `clipped`, and the field `clipped` of the view counts these places. `predictResponse` gives the value that the model fitted, and a fit does not use the range. `parseResponseRecord` refuses a measured value outside the range.
|
|
75
|
+
|
|
74
76
|
The field `nearest` of each place tells how far the place is from a measurement. It goes from 0 to 1, and 0 means that a point was measured there. A viewer can fade the band away from the data. A table cell with the `fallback` value has `nearest` above 0.
|
|
75
77
|
|
|
78
|
+
### The error of one cell
|
|
79
|
+
|
|
80
|
+
Each fold keeps one error for each measure. To get the error of a chosen set of points, fit with the option `outOfFold`. Each fold then stores the prediction of each held-out point with a value, on the scale of the model. The default is off, and a record with no option has the same bytes as a record of an earlier version.
|
|
81
|
+
|
|
82
|
+
`heldOutErrorAt(record, "ms", ids)` gives the fields of `heldOutError` for these points. The baseline of a point is the mean of the training points of its fold. The set of all the points gives the pooled error of the folds, to the rounding of the sums. A test examines this at 24 seeds, with a relative tolerance of 1e-12.
|
|
83
|
+
|
|
84
|
+
### The reason that a measure is absent
|
|
85
|
+
|
|
86
|
+
A measure with `null` has no value. To tell why, declare the reasons in the field `reasons` of the data. Then map the measure to a reason in the field `absent` of the point:
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"reasons": [{ "id": "budget", "label": "Out of budget" }],
|
|
91
|
+
"points": [{ "id": "p7", "values": { "boxes": 10000 }, "measures": { "ms": null }, "absent": { "ms": "budget" } }]
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
`parseResponseRecord` refuses a reason on a measure with a number, and a reason with no declaration. A measure with `null` and no reason is good. `fitResponse` treats each of them as `null`, and it keeps the reasons in the record.
|
|
96
|
+
|
|
97
|
+
`sliceResponse` and `surfaceResponse` give these points in a list `absent`, beside the list `points`. Each item has `id`, `at`, `reason` and `group`. The value of `reason` is `null` when the point states no reason. Thus a chart can draw each reason apart.
|
|
98
|
+
|
|
99
|
+
### Many levels with few pairs
|
|
100
|
+
|
|
101
|
+
The default expansion has one product for each pair of levels of two dimensions. Two dimensions with 76 and 33 levels thus give 2508 products, and the limit `RESPONSE_MAX_TERMS` refuses them. With the option `interactions: "seen"`, a ridge fit keeps only the terms that are not 0 at one point or more. This choice looks only at the inputs of the points. A term with no point has the weight 0, so the choice does not change a prediction. The limit applies after the choice.
|
|
102
|
+
|
|
76
103
|
## The functions
|
|
77
104
|
|
|
78
105
|
| Function | What it gives |
|
|
@@ -98,7 +125,10 @@ The field `nearest` of each place tells how far the place is from a measurement.
|
|
|
98
125
|
| `fitResponse(data, options)` | A record of the format `response-records/1`, with one model for each measure and held-out folds. |
|
|
99
126
|
| `parseResponseRecord(value)` | The examination of unknown data. It gives the record, or one fault with a path for each error. |
|
|
100
127
|
| `predictResponse(model, inputs)`, `heldOutError(record, measure)` | The value of a model at one set of inputs, and the error of the folds of a measure. |
|
|
101
|
-
| `
|
|
128
|
+
| `heldOutErrorAt(record, measure, ids)` | The held-out error of a chosen set of points, from the predictions of the option `outOfFold`. |
|
|
129
|
+
| `responseCells(record, vary, steps)` | The number of fitted places of a view, level axes included. It lets a caller bound the time of a view before the view starts. |
|
|
130
|
+
| `whenHolds(dimension, values)` | True when a place has the condition of a dimension. A dimension with no `when` is always present. |
|
|
131
|
+
| `sliceResponse(record, measure, options)`, `surfaceResponse(record, measure, options)` | A fitted curve over one dimension, or a fitted surface over two, with the matching measured points, the matching points with no value, a band and the distance to the nearest measurement. |
|
|
102
132
|
|
|
103
133
|
Each function throws a RangeError for an empty list, for a NaN and for a parameter out of its range. Thus a missing value cannot make a quiet NaN in a record.
|
|
104
134
|
|
package/build/index.d.ts
CHANGED
|
@@ -215,6 +215,18 @@ interface ResponseMeasure {
|
|
|
215
215
|
readonly unit: string;
|
|
216
216
|
/** The better direction of the value. The value `none` means that no direction is better. */
|
|
217
217
|
readonly direction: "higher" | "lower" | "none";
|
|
218
|
+
/**
|
|
219
|
+
* The low and the high end of the possible values, for example `[0, 1]` for a share. Each measured value is in this
|
|
220
|
+
* range. A view clips its fitted values to it, and a fit does not use it.
|
|
221
|
+
*/
|
|
222
|
+
readonly range?: readonly [number, number];
|
|
223
|
+
}
|
|
224
|
+
/** A declared reason that a measure is absent, for example infeasible, unsupported or out of budget. */
|
|
225
|
+
interface ResponseReason {
|
|
226
|
+
/** The key of the reason in the field `absent` of a point. */
|
|
227
|
+
readonly id: string;
|
|
228
|
+
/** The name that a view shows. */
|
|
229
|
+
readonly label: string;
|
|
218
230
|
}
|
|
219
231
|
/** One measured point. */
|
|
220
232
|
interface ResponsePoint {
|
|
@@ -225,6 +237,8 @@ interface ResponsePoint {
|
|
|
225
237
|
readonly measures: Readonly<Record<string, number | null>>;
|
|
226
238
|
/** The points of one group stay on one side of each split, for example the repeats of one seed. */
|
|
227
239
|
readonly group?: string;
|
|
240
|
+
/** The reason of a measure with `null`: a map from the id of the measure to the id of a declared reason. */
|
|
241
|
+
readonly absent?: Readonly<Record<string, string>>;
|
|
228
242
|
}
|
|
229
243
|
/** One factor of a term: a power of a number dimension, or 1 at a level and 0 at each other level. */
|
|
230
244
|
type ResponseFactor = {
|
|
@@ -322,6 +336,11 @@ interface ResponseFold {
|
|
|
322
336
|
readonly heldOut: readonly string[];
|
|
323
337
|
/** The error of each measure. A measure with no held-out point or no training point has no entry. */
|
|
324
338
|
readonly errors: Readonly<Record<string, ResponseFoldError>>;
|
|
339
|
+
/**
|
|
340
|
+
* The prediction of each held-out point with a value, on the scale of the model. The keys are the id of the measure,
|
|
341
|
+
* then the id of the point. The model of this fold gave them. Only the option `outOfFold` of `fitResponse` writes this field.
|
|
342
|
+
*/
|
|
343
|
+
readonly predictions?: Readonly<Record<string, Readonly<Record<string, number>>>>;
|
|
325
344
|
}
|
|
326
345
|
/** The data of a record, before a fit. */
|
|
327
346
|
interface ResponseData {
|
|
@@ -329,6 +348,8 @@ interface ResponseData {
|
|
|
329
348
|
readonly name: string;
|
|
330
349
|
readonly dimensions: readonly ResponseDimension[];
|
|
331
350
|
readonly measures: readonly ResponseMeasure[];
|
|
351
|
+
/** The reasons that a measure of a point can be absent. Each id in the field `absent` of a point is in this list. */
|
|
352
|
+
readonly reasons?: readonly ResponseReason[];
|
|
332
353
|
readonly points: readonly ResponsePoint[];
|
|
333
354
|
}
|
|
334
355
|
/** A record: the data, one model for each measure, and the folds. */
|
|
@@ -390,6 +411,8 @@ interface ResponseBand {
|
|
|
390
411
|
* count over the dimensions.
|
|
391
412
|
*/
|
|
392
413
|
readonly nearest: number;
|
|
414
|
+
/** This field is true when the measure has a `range` and the view moved `value`, `low` or `high` into it. */
|
|
415
|
+
readonly clipped?: true;
|
|
393
416
|
}
|
|
394
417
|
/** One place of a curve. */
|
|
395
418
|
interface ResponseCurvePoint extends ResponseBand {
|
|
@@ -404,6 +427,15 @@ interface ResponseSlicePoint {
|
|
|
404
427
|
readonly value: number;
|
|
405
428
|
readonly group?: string;
|
|
406
429
|
}
|
|
430
|
+
/** A point of a slice that matches the held values and has no value of the measure. */
|
|
431
|
+
interface ResponseAbsentPoint {
|
|
432
|
+
readonly id: string;
|
|
433
|
+
/** The value of the varied dimension. */
|
|
434
|
+
readonly at: ResponseValue;
|
|
435
|
+
/** The id of the declared reason. The value `null` means that the point states no reason. */
|
|
436
|
+
readonly reason: string | null;
|
|
437
|
+
readonly group?: string;
|
|
438
|
+
}
|
|
407
439
|
/** The fitted curve over one dimension, and the measured points that match the held values. */
|
|
408
440
|
interface ResponseSlice {
|
|
409
441
|
readonly measure: string;
|
|
@@ -412,7 +444,11 @@ interface ResponseSlice {
|
|
|
412
444
|
readonly held: Readonly<Record<string, ResponseInputValue>>;
|
|
413
445
|
readonly curve: readonly ResponseCurvePoint[];
|
|
414
446
|
readonly points: readonly ResponseSlicePoint[];
|
|
447
|
+
/** The points that match the held values and have no value of the measure, each with its reason. */
|
|
448
|
+
readonly absent: readonly ResponseAbsentPoint[];
|
|
415
449
|
readonly error: ResponseHeldOutError;
|
|
450
|
+
/** The number of places of `curve` with the field `clipped`. */
|
|
451
|
+
readonly clipped: number;
|
|
416
452
|
}
|
|
417
453
|
/** A measured point of a surface. */
|
|
418
454
|
interface ResponseSurfacePoint {
|
|
@@ -422,6 +458,15 @@ interface ResponseSurfacePoint {
|
|
|
422
458
|
readonly value: number;
|
|
423
459
|
readonly group?: string;
|
|
424
460
|
}
|
|
461
|
+
/** A point of a surface that matches the held values and has no value of the measure. */
|
|
462
|
+
interface ResponseSurfaceAbsentPoint {
|
|
463
|
+
readonly id: string;
|
|
464
|
+
/** The values of the two varied dimensions. */
|
|
465
|
+
readonly at: readonly [ResponseValue, ResponseValue];
|
|
466
|
+
/** The id of the declared reason. The value `null` means that the point states no reason. */
|
|
467
|
+
readonly reason: string | null;
|
|
468
|
+
readonly group?: string;
|
|
469
|
+
}
|
|
425
470
|
/** The fitted surface over two dimensions, and the measured points that match the held values. */
|
|
426
471
|
interface ResponseSurface {
|
|
427
472
|
readonly measure: string;
|
|
@@ -433,8 +478,14 @@ interface ResponseSurface {
|
|
|
433
478
|
/** One row for each value of `y`. Each row has one cell for each value of `x`. */
|
|
434
479
|
readonly cells: readonly (readonly ResponseBand[])[];
|
|
435
480
|
readonly points: readonly ResponseSurfacePoint[];
|
|
481
|
+
/** The points that match the held values and have no value of the measure, each with its reason. */
|
|
482
|
+
readonly absent: readonly ResponseSurfaceAbsentPoint[];
|
|
436
483
|
readonly error: ResponseHeldOutError;
|
|
484
|
+
/** The number of places of `cells` with the field `clipped`. */
|
|
485
|
+
readonly clipped: number;
|
|
437
486
|
}
|
|
487
|
+
/** This function gives true when a place has the condition of a dimension. A dimension with no condition is present. */
|
|
488
|
+
export declare function whenHolds(dimension: ResponseDimension, values: Readonly<Record<string, unknown>>): boolean;
|
|
438
489
|
/**
|
|
439
490
|
* This function gives the value of a model at `inputs`, on the scale of the measure. The inputs have a value for each
|
|
440
491
|
* dimension that the model reads. An absent conditional dimension has `null`. A table model gives its `fallback` for a
|
|
@@ -451,10 +502,24 @@ export declare function predictResponse(model: ResponseModel, inputs: Readonly<R
|
|
|
451
502
|
* fold has a small effect. The function throws a RangeError when no fold has the measure.
|
|
452
503
|
*/
|
|
453
504
|
export declare function heldOutError(record: Pick<ResponseRecord, "folds">, measure: string): ResponseHeldOutError;
|
|
505
|
+
/**
|
|
506
|
+
* This function gives the held-out error of a chosen set of points, on the scale of the model. It uses the stored
|
|
507
|
+
* predictions of the option `outOfFold`. Thus a reader can get the error of one cell. The result has the fields of
|
|
508
|
+
* `heldOutError`, and the set of all the points gives the same values to the rounding of the sums.
|
|
509
|
+
*
|
|
510
|
+
* Each point counts at most once. A point with no value of the measure, or with no prediction, adds nothing to `n`.
|
|
511
|
+
* The baseline of a point is the mean of the training points of its fold.
|
|
512
|
+
*
|
|
513
|
+
* The function throws a RangeError for an unknown measure and for a record with no predictions of the measure. It
|
|
514
|
+
* also throws for an unknown id, for a repeated id, and for a set with no point to score.
|
|
515
|
+
*/
|
|
516
|
+
export declare function heldOutErrorAt(record: ResponseRecord, measure: string, ids: readonly string[]): ResponseHeldOutError;
|
|
454
517
|
/**
|
|
455
518
|
* This function gives a view of a measure over one dimension of a parsed record:
|
|
456
519
|
* - `curve`: the fitted value at each level, or at `steps` values of a continuous dimension, with its band.
|
|
457
520
|
* - `points`: the measured points that match the held values. This list is empty when no point matches them.
|
|
521
|
+
* - `absent`: the points that match the held values and have no value of the measure, each with its reason. A chart
|
|
522
|
+
* can draw each reason apart.
|
|
458
523
|
* - `held`: the value of each other dimension.
|
|
459
524
|
* - `error`: the held-out error.
|
|
460
525
|
*
|
|
@@ -473,6 +538,10 @@ export declare function heldOutError(record: Pick<ResponseRecord, "folds">, meas
|
|
|
473
538
|
* distance is on the log scale of the model, so the band is a ratio. The band has one width along all the curve. The
|
|
474
539
|
* band is the mean error of the model, and `nearest` tells how far the place is from a measurement.
|
|
475
540
|
*
|
|
541
|
+
* A measure with a `range` keeps each place inside it. The fields `value`, `low` and `high` move to the nearest end.
|
|
542
|
+
* The place then has the field `clipped`, and the field `clipped` of the view counts these places. The function
|
|
543
|
+
* `predictResponse` gives the value that the model fitted.
|
|
544
|
+
*
|
|
476
545
|
* The function throws a RangeError for an unknown measure or dimension, and for a held value that is not good for its
|
|
477
546
|
* dimension. It also throws for a dimension that is both varied and held, and for a bad option.
|
|
478
547
|
*/
|
|
@@ -484,6 +553,14 @@ export declare function sliceResponse(record: ResponseRecord, measure: string, o
|
|
|
484
553
|
* It throws when a conditional dimension varies with its parent, and when two varied dimensions need no common level.
|
|
485
554
|
*/
|
|
486
555
|
export declare function surfaceResponse(record: ResponseRecord, measure: string, options: ResponseSurfaceOptions): ResponseSurface;
|
|
556
|
+
/**
|
|
557
|
+
* This function gives the number of fitted places of a view before the view starts: the product of the lengths of its
|
|
558
|
+
* axes. A level axis counts its levels, and a continuous axis counts `steps`. The field `nearest` reads each point at
|
|
559
|
+
* each place, so the reads of a view are this count times the number of points. The default of `steps` is the default
|
|
560
|
+
* of a view. The function throws a RangeError for an unknown dimension, for one dimension named two times, and for a
|
|
561
|
+
* bad `steps`.
|
|
562
|
+
*/
|
|
563
|
+
export declare function responseCells(record: Pick<ResponseRecord, "dimensions">, vary: string | readonly [string, string], steps?: number): number;
|
|
487
564
|
/** The largest power of a factor. A larger power of a coordinate from -1 to 1 adds almost nothing to a model. */
|
|
488
565
|
export declare const RESPONSE_MAX_POWER = 8;
|
|
489
566
|
/** One fault of a record. */
|
|
@@ -515,6 +592,15 @@ type ParsedResponseRecord = {
|
|
|
515
592
|
* - All the points of a group are in one fold, or all are in no fold. Thus no group is on both sides of a split.
|
|
516
593
|
* - The count `n` of an error is the number of held-out points with a value of the measure.
|
|
517
594
|
* - Each measure has an error in one fold or more.
|
|
595
|
+
*
|
|
596
|
+
* These rules apply to the predictions of a fold:
|
|
597
|
+
* - Each prediction is a finite number of a held-out point of the fold with a value of the measure.
|
|
598
|
+
* - The fold has a prediction of each such point, and an error of the measure.
|
|
599
|
+
* - When one fold has predictions of a measure, each fold with an error of the measure has them.
|
|
600
|
+
*
|
|
601
|
+
* These rules apply to the reasons of a point:
|
|
602
|
+
* - Each reason is on a known measure with no number. A measure with `null` and no reason is good.
|
|
603
|
+
* - Each reason has a declaration in the field `reasons` of the record.
|
|
518
604
|
*/
|
|
519
605
|
export declare function parseResponseRecord(value: unknown): ParsedResponseRecord;
|
|
520
606
|
/** The options of `fitResponse`. */
|
|
@@ -531,8 +617,11 @@ interface ResponseFitOptions {
|
|
|
531
617
|
* When true, a ridge fit also has the products of two dimensions, up to `degree`. The default is true. The value
|
|
532
618
|
* false also removes the products of a conditional dimension with the levels of its parent. Thus this option is the
|
|
533
619
|
* way out of the limit `RESPONSE_MAX_TERMS`.
|
|
620
|
+
*
|
|
621
|
+
* The value `seen` is the expansion of true, with only the terms that are not 0 at one point or more. Thus a sparse
|
|
622
|
+
* product of two large sets of levels keeps only the pairs with points. The limit applies after this choice.
|
|
534
623
|
*/
|
|
535
|
-
readonly interactions?: boolean;
|
|
624
|
+
readonly interactions?: boolean | "seen";
|
|
536
625
|
/** The stated terms of a ridge fit, in place of `degree` and `interactions`. */
|
|
537
626
|
readonly terms?: readonly (readonly ResponseFactor[])[];
|
|
538
627
|
/** The penalties that a ridge fit chooses from, each above 0. The default is `RESPONSE_LAMBDAS`. */
|
|
@@ -541,6 +630,11 @@ interface ResponseFitOptions {
|
|
|
541
630
|
readonly log?: readonly string[];
|
|
542
631
|
/** On a log scale, each smaller value takes this value. With no floor, a value of 0 or less is an error. */
|
|
543
632
|
readonly logFloor?: number;
|
|
633
|
+
/**
|
|
634
|
+
* When true, each fold stores the prediction of each held-out point with a value. Then `heldOutErrorAt` gives the error of
|
|
635
|
+
* a chosen set of points. The default is false, and the record then has no field `predictions`.
|
|
636
|
+
*/
|
|
637
|
+
readonly outOfFold?: boolean;
|
|
544
638
|
}
|
|
545
639
|
/** The default penalties of a ridge fit. The coordinates are from -1 to 1, so one list suits each record. */
|
|
546
640
|
export declare const RESPONSE_LAMBDAS: readonly number[];
|
|
@@ -565,7 +659,10 @@ export declare const RESPONSE_MAX_TERMS = 1024;
|
|
|
565
659
|
* The penalty: each fold of a ridge fit chooses from `lambdas` with the other folds. Thus the held-out error of a
|
|
566
660
|
* fold is not optimistic. The model of the record chooses with all the folds.
|
|
567
661
|
*
|
|
568
|
-
* The errors: a fold scores the model of the other folds on its held-out points, on the scale of the model.
|
|
662
|
+
* The errors: a fold scores the model of the other folds on its held-out points, on the scale of the model. With the
|
|
663
|
+
* option `outOfFold`, the fold also stores the prediction of each of these points.
|
|
664
|
+
*
|
|
665
|
+
* The reasons: a measure with a stated reason is `null` for the fit. The field `reasons` of the data stays in the record.
|
|
569
666
|
*
|
|
570
667
|
* The result does not depend on the order of the points, except for the field `points`, which keeps the order of
|
|
571
668
|
* the data. The same data and options give the same bytes in one JavaScript engine.
|
|
@@ -796,5 +893,5 @@ interface CalibrationLevel {
|
|
|
796
893
|
}
|
|
797
894
|
/** The hit rate of each stated level, from the lowest level. */
|
|
798
895
|
export declare function calibration(forecasts: readonly Forecast[]): CalibrationLevel[];
|
|
799
|
-
export type { BootstrapOptions, CalibrationLevel, CategoricalDimension, CompareOptions, Comparison, ContinuousDimension, Corrected, CountInterval, Effect, Forecast, Interval, LeastSquaresFit, LeastSquaresOptions, MedianInterval, NoiseOptions, NoiseState, NoiseVerdict, OrdinalDimension, ParsedResponseRecord, PermutationOptions, PermutationResult, Proportion, QuantileMethod, ResponseBand, ResponseCurvePoint, ResponseData, ResponseDimension, ResponseDimensionBase, ResponseFactor, ResponseFault, ResponseFitOptions, ResponseFold, ResponseFoldError, ResponseHeldOutError, ResponseInputValue, ResponseMeasure, ResponseModel, ResponseModelBase, ResponsePoint, ResponseRecord, ResponseSlice, ResponseSliceOptions, ResponseSlicePoint, ResponseSurface, ResponseSurfaceOptions, ResponseSurfacePoint, ResponseTableCell, ResponseValue, ResponseViewOptions, ResponseWhen, RidgeInput, RidgeInputBase, RidgeLevelInput, RidgeNumberInput, RidgeOptions, RidgeRankInput, RidgeResponseModel, RidgeTerm, Summary, TableResponseModel };
|
|
896
|
+
export type { BootstrapOptions, CalibrationLevel, CategoricalDimension, CompareOptions, Comparison, ContinuousDimension, Corrected, CountInterval, Effect, Forecast, Interval, LeastSquaresFit, LeastSquaresOptions, MedianInterval, NoiseOptions, NoiseState, NoiseVerdict, OrdinalDimension, ParsedResponseRecord, PermutationOptions, PermutationResult, Proportion, QuantileMethod, ResponseAbsentPoint, ResponseBand, ResponseCurvePoint, ResponseData, ResponseDimension, ResponseDimensionBase, ResponseFactor, ResponseFault, ResponseFitOptions, ResponseFold, ResponseFoldError, ResponseHeldOutError, ResponseInputValue, ResponseMeasure, ResponseModel, ResponseModelBase, ResponsePoint, ResponseReason, ResponseRecord, ResponseSlice, ResponseSliceOptions, ResponseSlicePoint, ResponseSurface, ResponseSurfaceAbsentPoint, ResponseSurfaceOptions, ResponseSurfacePoint, ResponseTableCell, ResponseValue, ResponseViewOptions, ResponseWhen, RidgeInput, RidgeInputBase, RidgeLevelInput, RidgeNumberInput, RidgeOptions, RidgeRankInput, RidgeResponseModel, RidgeTerm, Summary, TableResponseModel };
|
|
800
897
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/describe.ts","../src/regression.ts","../src/bootstrap.ts","../src/ridge.ts","../src/response.ts","../src/response-parse.ts","../src/response-fit.ts","../src/tests.ts","../src/rank.ts","../src/discrete.ts","../src/compare.ts"],"mappings":";;;;;;KAOY;;wBAmBI,OAAO;wBAIP,KAAK;;;;;wBAgBL,GAAG;;;;;;;wBAgBH,eAAe,iCAAiC,WAAW,SAAQ;;wBAkBnE,SAAS,2BAA2B,WAAW,SAAQ;;;;;wBASvD,OAAO;;UAQN;WACN;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;;wBAGK,UAAU,4BAA4B;;;;;;UC3GrC;;WAEN;;UAGM;;WAEN;;WAEA;;;;;WAKA;;WAEA;;WAEA;;;;;;;;;;;wBAkBK,aAAa,mCAAmC,sBAAsB,UAAS,sBAA2B;UC/BzG;;WAEN;;WAEA;;WAEA;;WAEA,SAAS;;;;;;WAMT;;UAGM;;WAEN;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;;;;;wBAOK,UAAU,GAAG,eAAe,KAAK,YAAY,iBAAiB,gBAAgB,UAAS,mBAAwB;;;;;;;;wBAsB/G,aAAa,GAAG,GAC9B,YAAY,KACZ,YAAY,KACZ,YAAY,YAAY,KAAK,YAAY,gBACzC,UAAS,mBACR;;;;;;wBAwBa,qBAAqB,8BAA8B,gCAAgC,UAAS,mBAAwB;;;;;;;wBAUpH,sBACd,mCACA,sBACA,UAAS,mBAAmB,sBAC3B;;wBAmFa,gBAAgB,2BAA2B,UAAS,mBAAwB;;;;;;wBAS5E,kBAAkB,GAChC,eAAe,KACf,UAAU,KAAK,cACf,YAAY,eAAe,gBAC3B,UAAS,mBACR;;;;;;;UCxMc;;WAEN;;;;;;;;;;;;wBAoBK,WAAW,MAAM,mBAAmB,QAAQ,mBAAmB,gBAAgB,UAAS;;qBCd3F;;KAGD;;KAGA,qBAAqB;;UAGhB;;WAEN;WACA,iBAAiB;;;UAIX;;WAEN;;WAEA;;WAEA;;WAEA,OAAO;;;UAID,4BAA4B;WAClC;;WAEA;;WAEA;;;UAIM,yBAAyB;WAC/B;WACA;;WAEA;;;UAIM,6BAA6B;WACnC;WACA;;;KAIC,oBAAoB,sBAAsB,mBAAmB;;UAGxD;;WAEN;WACA;;WAEA;;WAEA;;;UAIM;WACN;;WAEA,QAAQ,SAAS,eAAe;;WAEhC,UAAU,SAAS;;WAEnB;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/describe.ts","../src/regression.ts","../src/bootstrap.ts","../src/ridge.ts","../src/response.ts","../src/response-parse.ts","../src/response-fit.ts","../src/tests.ts","../src/rank.ts","../src/discrete.ts","../src/compare.ts"],"mappings":";;;;;;KAOY;;wBAmBI,OAAO;wBAIP,KAAK;;;;;wBAgBL,GAAG;;;;;;;wBAgBH,eAAe,iCAAiC,WAAW,SAAQ;;wBAkBnE,SAAS,2BAA2B,WAAW,SAAQ;;;;;wBASvD,OAAO;;UAQN;WACN;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;;wBAGK,UAAU,4BAA4B;;;;;;UC3GrC;;WAEN;;UAGM;;WAEN;;WAEA;;;;;WAKA;;WAEA;;WAEA;;;;;;;;;;;wBAkBK,aAAa,mCAAmC,sBAAsB,UAAS,sBAA2B;UC/BzG;;WAEN;;WAEA;;WAEA;;WAEA,SAAS;;;;;;WAMT;;UAGM;;WAEN;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;;;;;wBAOK,UAAU,GAAG,eAAe,KAAK,YAAY,iBAAiB,gBAAgB,UAAS,mBAAwB;;;;;;;;wBAsB/G,aAAa,GAAG,GAC9B,YAAY,KACZ,YAAY,KACZ,YAAY,YAAY,KAAK,YAAY,gBACzC,UAAS,mBACR;;;;;;wBAwBa,qBAAqB,8BAA8B,gCAAgC,UAAS,mBAAwB;;;;;;;wBAUpH,sBACd,mCACA,sBACA,UAAS,mBAAmB,sBAC3B;;wBAmFa,gBAAgB,2BAA2B,UAAS,mBAAwB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