-
Notifications
You must be signed in to change notification settings - Fork 0
/
prefix.schema.yaml
46 lines (46 loc) · 1.41 KB
/
prefix.schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%YAML 1.2
---
title: "Prefix Schema"
description: "Schema for defining a prefix processor configuration"
properties:
processor:
type: "object"
description: "The processor configuration"
properties:
function:
type: "string"
description: "The function used in the processor"
enum: ["median", "weighted_median"]
params:
type: "object"
anyOf:
- properties:
min_source_count:
type: "integer"
minimum: 1
description: "The minimum number of sources needed to yield a signal result"
required:
- min_source_count
additionalProperties: false
- properties:
source_weights:
type: "object"
additionalProperties:
type: "integer"
minimum: 1
description: "Weights associated with each data source"
minimum_cumulative_weight:
type: "integer"
minimum: 1
description: "The minimum cumulative weight required to calculate the weighted median"
required:
- source_weights
- minimum_cumulative_weight
additionalProperties: false
required:
- function
- params
additionalProperties: false
required:
- processor
additionalProperties: false