time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

Continuous.d.ts (3293B)


      1 import * as XYShape from "../XYShape.js";
      2 import * as MixedPoint from "./MixedPoint.js";
      3 import * as Result from "../utility/result.js";
      4 import { MixedShape } from "./Mixed.js";
      5 import * as AlgebraicShapeCombination from "./AlgebraicShapeCombination.js";
      6 import { ConvolutionOperation, DistributionType, PointSet } from "./PointSet.js";
      7 import { DiscreteShape } from "./Discrete.js";
      8 export declare class ContinuousShape implements PointSet<ContinuousShape> {
      9     readonly xyShape: XYShape.XYShape;
     10     readonly interpolation: XYShape.InterpolationStrategy;
     11     private _integralSumCache?;
     12     private _integralCache?;
     13     constructor(args: {
     14         xyShape: XYShape.XYShape;
     15         interpolation?: XYShape.InterpolationStrategy;
     16         integralSumCache?: number;
     17         integralCache?: ContinuousShape;
     18     });
     19     get integralCache(): ContinuousShape | undefined;
     20     get integralSumCache(): number | undefined;
     21     withAdjustedIntegralSum(integralSumCache: number): ContinuousShape;
     22     lastY(): number;
     23     minX(): number;
     24     maxX(): number;
     25     isEqual(t: ContinuousShape): boolean;
     26     mapY(fn: (y: number) => number, integralSumCacheFn?: ((sum: number) => number | undefined) | undefined, integralCacheFn?: ((cache: ContinuousShape) => ContinuousShape | undefined) | undefined): ContinuousShape;
     27     mapYResult<E>(fn: (y: number) => Result.result<number, E>, integralSumCacheFn: ((sum: number) => number | undefined) | undefined, integralCacheFn: ((cache: ContinuousShape) => ContinuousShape | undefined) | undefined): Result.result<ContinuousShape, E>;
     28     toDiscreteProbabilityMassFraction(): number;
     29     xToY(f: number): MixedPoint.MixedPoint;
     30     truncate(leftCutoff: number | undefined, rightCutoff: number | undefined): ContinuousShape;
     31     integral(): ContinuousShape;
     32     integralSum(): number;
     33     integralXtoY(f: number): number;
     34     integralYtoX(f: number): number;
     35     private shapeMap;
     36     downsample(length: number): ContinuousShape;
     37     isEmpty(): boolean;
     38     toContinuous(): this;
     39     toDiscrete(): undefined;
     40     toMixed(): MixedShape;
     41     scaleBy(scale: number): ContinuousShape;
     42     normalize(): ContinuousShape;
     43     mean(): number;
     44     private integrate;
     45     getMeanOfSquares(): number;
     46     variance(): number;
     47     downsampleEquallyOverX(length: number): ContinuousShape;
     48 }
     49 export declare const Analysis: {};
     50 export declare const empty: () => ContinuousShape;
     51 export declare const stepwiseToLinear: (t: ContinuousShape) => ContinuousShape;
     52 export declare const combinePointwise: <E>(t1: ContinuousShape, t2: ContinuousShape, fn: (v1: number, v2: number) => Result.result<number, E>, distributionType?: DistributionType, integralSumCachesFn?: (v1: number, v2: number) => number | undefined) => Result.result<ContinuousShape, E>;
     53 export declare const getShape: (t: ContinuousShape) => XYShape.XYShape;
     54 export declare const sum: (continuousShapes: ContinuousShape[]) => ContinuousShape;
     55 export declare const combineAlgebraicallyWithDiscrete: (op: ConvolutionOperation, t1: ContinuousShape, t2: DiscreteShape, discretePosition: AlgebraicShapeCombination.ArgumentPosition) => ContinuousShape;
     56 export declare const combineAlgebraically: (op: ConvolutionOperation, t1: ContinuousShape, t2: ContinuousShape) => ContinuousShape;
     57 //# sourceMappingURL=Continuous.d.ts.map