time-to-botec

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

distUtil.js (565B)


      1 import { otherError } from "../dist/DistError.js";
      2 import { REDistributionError } from "../errors/messages.js";
      3 import { vDist } from "../value/index.js";
      4 export const CI_CONFIG = [
      5     { lowKey: "p5", highKey: "p95", probability: 0.9 },
      6     { lowKey: "p10", highKey: "p90", probability: 0.8 },
      7     { lowKey: "p25", highKey: "p75", probability: 0.5 },
      8 ];
      9 export function symDistResultToValue(result) {
     10     if (!result.ok) {
     11         throw new REDistributionError(otherError(result.value));
     12     }
     13     return vDist(result.value);
     14 }
     15 //# sourceMappingURL=distUtil.js.map