MCPcopy Create free account
hub / github.com/Effect-TS/effect / linearBoundaries

Function linearBoundaries

packages/effect/src/Metric.ts:3179–3184  ·  view source on GitHub ↗
(options: {
  readonly start: number
  readonly width: number
  readonly count: number
})

Source from the content-addressed store, hash-verified

3177 * @since 4.0.0
3178 */
3179export const linearBoundaries = (options: {
3180 readonly start: number
3181 readonly width: number
3182 readonly count: number
3183}): ReadonlyArray<number> =>
3184 boundariesFromIterable(Arr.makeBy(options.count - 1, (n) => options.start + n * options.width))
3185
3186/**
3187 * Creates histogram bucket boundaries with exponentially increasing values.

Callers

nothing calls this directly

Calls 1

boundariesFromIterableFunction · 0.85

Tested by

no test coverage detected