{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/analyzers/baseline.analyzer.ts",
          "name": "uniformity",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-baseline-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/baseline.analyzer.ts",
            "label": "core/analyzers/baseline.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/baseline.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-baseline-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/information.analyzer.ts",
          "name": "entropyBits",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-information-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/information.analyzer.ts",
            "label": "core/analyzers/information.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/information.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-information-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/representation.distribution.analyzer.ts",
          "name": "driftOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-distribution-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.distribution.analyzer.ts",
            "label": "core/analyzers/representation.distribution.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.distribution.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-distribution-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/representation.distribution.analyzer.ts",
          "name": "overdueOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-distribution-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.distribution.analyzer.ts",
            "label": "core/analyzers/representation.distribution.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.distribution.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-distribution-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/representation.distribution.analyzer.ts",
          "name": "temporalOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-distribution-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.distribution.analyzer.ts",
            "label": "core/analyzers/representation.distribution.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.distribution.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-distribution-analyzer-ts"
          }
        },
        {
          "file": "core/analyzers/representation.distribution.analyzer.ts",
          "name": "witnessesOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-distribution-analyzer-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.distribution.analyzer.ts",
            "label": "core/analyzers/representation.distribution.analyzer.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.distribution.analyzer.ts.md",
            "ref": "anatomy:file-patterns-core-analyzers-representation-distribution-analyzer-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 51,
      "name": "result",
      "signature": "public result(top = DEFAULT_TOP): DistributionSummary {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/field.converter.ts",
          "name": "asText",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-converters-field-converter-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/converters/field.converter.ts",
            "label": "core/converters/field.converter.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/converters/field.converter.ts.md",
            "ref": "anatomy:file-patterns-core-converters-field-converter-ts"
          }
        },
        {
          "file": "core/selectors/record.selector.ts",
          "name": "foldRecords",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-selectors-record-selector-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/selectors/record.selector.ts",
            "label": "core/selectors/record.selector.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/selectors/record.selector.ts.md",
            "ref": "anatomy:file-patterns-core-selectors-record-selector-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 39,
      "name": "update",
      "signature": "public update(chunk: readonly unknown[]): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/counters/base.counter.ts",
          "name": "increment",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-counters-base-counter-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/counters/base.counter.ts",
            "label": "core/counters/base.counter.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/counters/base.counter.ts.md",
            "ref": "anatomy:file-patterns-core-counters-base-counter-ts"
          }
        },
        {
          "file": "core/counters/base.counter.ts",
          "name": "increment",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-counters-base-counter-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/counters/base.counter.ts",
            "label": "core/counters/base.counter.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/counters/base.counter.ts.md",
            "ref": "anatomy:file-patterns-core-counters-base-counter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 72,
      "name": "observe",
      "signature": "private observe(value: string): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/selectors/counter.selector.ts",
          "name": "weightedChoice",
          "source": {
            "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-selectors-counter-selector-ts",
            "json": "https://banes-lab.com/json/source/patterns/core/selectors/counter.selector.ts",
            "label": "core/selectors/counter.selector.ts",
            "markdown": "https://banes-lab.com/source/patterns/core/selectors/counter.selector.ts.md",
            "ref": "anatomy:file-patterns-core-selectors-counter-selector-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 47,
      "name": "sample",
      "signature": "public sample(rng: Rng): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "DEFAULT_WINDOW",
      "signature": "const DEFAULT_WINDOW = 50;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "DEFAULT_TOP",
      "signature": "const DEFAULT_TOP = 10;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "class_declaration",
      "line": 21,
      "name": "DistributionAccumulator",
      "signature": "export class DistributionAccumulator {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 22,
      "name": "counts",
      "signature": "private readonly counts = new Map<string, number>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 23,
      "name": "lastSeen",
      "signature": "private readonly lastSeen = new Map<string, number>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 24,
      "name": "indexSum",
      "signature": "private readonly indexSum = new Map<string, number>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 25,
      "name": "window",
      "signature": "private readonly window: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 26,
      "name": "compressor",
      "signature": "private readonly compressor: Compressibility = createCompressibility();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 27,
      "name": "field",
      "signature": "private readonly field: string;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 28,
      "name": "windowSize",
      "signature": "private readonly windowSize: number;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 29,
      "name": "total",
      "signature": "private total = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 30,
      "name": "mode",
      "signature": "private mode: string | null = null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 31,
      "name": "hits",
      "signature": "private hits = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 32,
      "name": "trials",
      "signature": "private trials = 0;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 34,
      "name": "constructor",
      "signature": "public constructor(field: string, windowSize = DEFAULT_WINDOW) {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "temperatures",
      "signature": "const temperatures = temperaturesOf(this.counts, this.window, this.total);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "pairs",
      "signature": "const pairs = topEntries(this.counts, top);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 83,
      "name": "trackMode",
      "signature": "private trackMode(value: string): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 92,
      "name": "updateMode",
      "signature": "private updateMode(value: string, next: number): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 98,
      "name": "pushWindow",
      "signature": "private pushWindow(value: string): void {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-aggregators-representation-distribution-aggregator-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "representation.distribution.aggregator.ts",
  "path": "core/aggregators/representation.distribution.aggregator.ts",
  "ref": "anatomy:file-patterns-core-aggregators-representation-distribution-aggregator-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/patterns#folder-patterns-core-aggregators",
          "json": "https://banes-lab.com/json/anatomy/patterns/folder-patterns-core-aggregators",
          "label": "core/aggregators",
          "markdown": "https://banes-lab.com/anatomy/patterns/folder-patterns-core-aggregators.md",
          "ref": "chapter:/anatomy/patterns#folder-patterns-core-aggregators"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-baseline-analyzer-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/analyzers/baseline.analyzer.ts",
          "label": "core/analyzers/baseline.analyzer.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/analyzers/baseline.analyzer.ts.md",
          "ref": "anatomy:file-patterns-core-analyzers-baseline-analyzer-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-information-analyzer-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/analyzers/information.analyzer.ts",
          "label": "core/analyzers/information.analyzer.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/analyzers/information.analyzer.ts.md",
          "ref": "anatomy:file-patterns-core-analyzers-information-analyzer-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-analyzers-representation-distribution-analyzer-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/analyzers/representation.distribution.analyzer.ts",
          "label": "core/analyzers/representation.distribution.analyzer.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/analyzers/representation.distribution.analyzer.ts.md",
          "ref": "anatomy:file-patterns-core-analyzers-representation-distribution-analyzer-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-converters-field-converter-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/converters/field.converter.ts",
          "label": "core/converters/field.converter.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/converters/field.converter.ts.md",
          "ref": "anatomy:file-patterns-core-converters-field-converter-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-counters-base-counter-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/counters/base.counter.ts",
          "label": "core/counters/base.counter.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/counters/base.counter.ts.md",
          "ref": "anatomy:file-patterns-core-counters-base-counter-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-selectors-counter-selector-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/selectors/counter.selector.ts",
          "label": "core/selectors/counter.selector.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/selectors/counter.selector.ts.md",
          "ref": "anatomy:file-patterns-core-selectors-counter-selector-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-selectors-record-selector-ts",
          "json": "https://banes-lab.com/json/source/patterns/core/selectors/record.selector.ts",
          "label": "core/selectors/record.selector.ts",
          "markdown": "https://banes-lab.com/source/patterns/core/selectors/record.selector.ts.md",
          "ref": "anatomy:file-patterns-core-selectors-record-selector-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/patterns#folder-patterns-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/patterns/folder-patterns-core-analyzers",
          "label": "core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/patterns/folder-patterns-core-analyzers.md",
          "ref": "chapter:/anatomy/patterns#folder-patterns-core-analyzers"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#folder-patterns-core-converters",
          "json": "https://banes-lab.com/json/anatomy/patterns/folder-patterns-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/patterns/folder-patterns-core-converters.md",
          "ref": "chapter:/anatomy/patterns#folder-patterns-core-converters"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#folder-patterns-core-counters",
          "json": "https://banes-lab.com/json/anatomy/patterns/folder-patterns-core-counters",
          "label": "core/counters",
          "markdown": "https://banes-lab.com/anatomy/patterns/folder-patterns-core-counters.md",
          "ref": "chapter:/anatomy/patterns#folder-patterns-core-counters"
        },
        {
          "href": "https://banes-lab.com/anatomy/patterns#folder-patterns-core-selectors",
          "json": "https://banes-lab.com/json/anatomy/patterns/folder-patterns-core-selectors",
          "label": "core/selectors",
          "markdown": "https://banes-lab.com/anatomy/patterns/folder-patterns-core-selectors.md",
          "ref": "chapter:/anatomy/patterns#folder-patterns-core-selectors"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "aggregator",
    "subject": "representation",
    "variant": "distribution"
  },
  "stats": {
    "bytes": 3791,
    "callable": 8,
    "definitions": 24,
    "edges": 11,
    "exported": 22,
    "files": 1,
    "findings": {},
    "flows": {
      "entry": 4,
      "isolated": 20
    },
    "lines": {
      "blank": 10,
      "code": 94,
      "total": 104
    }
  },
  "summary": "94 lines of code and 24 definitions.",
  "text": "https://banes-lab.com/source/patterns/core/aggregators/representation.distribution.aggregator.ts.txt",
  "tree": "patterns",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-aggregators-representation-graph-aggregator-ts",
      "json": "https://banes-lab.com/json/source/patterns/core/aggregators/representation.graph.aggregator.ts",
      "label": "core/aggregators/representation.graph.aggregator.ts",
      "markdown": "https://banes-lab.com/source/patterns/core/aggregators/representation.graph.aggregator.ts.md",
      "ref": "anatomy:file-patterns-core-aggregators-representation-graph-aggregator-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/patterns#file-patterns-core-aggregators-field-aggregator-ts",
      "json": "https://banes-lab.com/json/source/patterns/core/aggregators/field.aggregator.ts",
      "label": "core/aggregators/field.aggregator.ts",
      "markdown": "https://banes-lab.com/source/patterns/core/aggregators/field.aggregator.ts.md",
      "ref": "anatomy:file-patterns-core-aggregators-field-aggregator-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/patterns/core/aggregators",
    "label": "core/aggregators",
    "markdown": "https://banes-lab.com/api/source/patterns/core/aggregators.md",
    "ref": "api:source/patterns/core/aggregators"
  }
}
