time-to-botec

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

Mixed.d.ts (2679B)


      1 import * as Continuous from "./Continuous.js";
      2 import * as Discrete from "./Discrete.js";
      3 import * as MixedPoint from "./MixedPoint.js";
      4 import * as Result from "../utility/result.js";
      5 import { ContinuousShape } from "./Continuous.js";
      6 import { DiscreteShape } from "./Discrete.js";
      7 import { ConvolutionOperation, PointSet } from "./PointSet.js";
      8 export declare class MixedShape implements PointSet<MixedShape> {
      9     readonly continuous: ContinuousShape;
     10     readonly discrete: DiscreteShape;
     11     private _integralSumCache?;
     12     private _integralCache?;
     13     constructor(args: {
     14         continuous: ContinuousShape;
     15         discrete: DiscreteShape;
     16         integralSumCache?: number;
     17         integralCache?: ContinuousShape;
     18     });
     19     get integralCache(): Continuous.ContinuousShape | undefined;
     20     get integralSumCache(): number | undefined;
     21     withAdjustedIntegralSum(integralSumCache: number): MixedShape;
     22     minX(): number;
     23     maxX(): number;
     24     isEmpty(): boolean;
     25     toContinuous(): Continuous.ContinuousShape;
     26     toDiscrete(): Discrete.DiscreteShape;
     27     toMixed(): this;
     28     isEqual(other: MixedShape): boolean;
     29     truncate(leftCutoff: number | undefined, rightCutoff: number | undefined): MixedShape;
     30     normalize(): MixedShape;
     31     xToY(x: number): MixedPoint.MixedPoint;
     32     toDiscreteProbabilityMassFraction(): number;
     33     downsample(count: number): MixedShape;
     34     integral(): Continuous.ContinuousShape;
     35     integralSum(): number;
     36     integralXtoY(f: number): number;
     37     integralYtoX(f: number): number;
     38     mapY(fn: (y: number) => number, integralSumCacheFn: ((sum: number) => number | undefined) | undefined, integralCacheFn: ((cache: ContinuousShape) => ContinuousShape | undefined) | undefined): MixedShape;
     39     mapYResult<E>(fn: (y: number) => Result.result<number, E>, integralSumCacheFn: undefined | ((sum: number) => number | undefined), integralCacheFn: undefined | ((cache: ContinuousShape) => ContinuousShape | undefined)): Result.result<MixedShape, E>;
     40     mean(): number;
     41     variance(): number;
     42 }
     43 export declare const combineAlgebraically: (op: ConvolutionOperation, t1: MixedShape, t2: MixedShape) => MixedShape;
     44 export declare const combinePointwise: <E>(t1: MixedShape, t2: MixedShape, fn: (v1: number, v2: number) => Result.result<number, E>, integralSumCachesFn?: (v1: number, v2: number) => number | undefined, integralCachesFn?: (v1: ContinuousShape, v2: ContinuousShape) => ContinuousShape | undefined) => Result.result<MixedShape, E>;
     45 export declare function buildMixedShape({ continuous, discrete, }: {
     46     continuous?: ContinuousShape;
     47     discrete?: DiscreteShape;
     48 }): MixedShape | undefined;
     49 //# sourceMappingURL=Mixed.d.ts.map