Updated Score Calculators (markdown)

master
Martin Kruliš 4 years ago
parent a6e13ac788
commit 93387c3602

@ -12,8 +12,8 @@ Computes overall score as weighted average of individual test scores. The calcul
```
testWeights:
"Test 01": 300
"Test 02": 200
"Test 01": 200
"Test 02": 300
"Test 03": 100
```
@ -40,4 +40,28 @@ Internal nodes (functions):
* `min` - computes minimum of all children values
* `max` - computes maximum of all children values
* `avg` - computes arithmetic average of all children values
* `clamp` - unary node that clamps its operand value into [0,1] range
* `clamp` - unary node that clamps its operand value into [0,1] range
For practical reasons, we have decided to implement one optimization. Value literals may be also encoded as simple float numbers (instead of objects) in the child list. The `value`-typed objects and float literals are treated as equal; however, root node must be always an object (even when it is a literal).
#### Example
```
type: div
children:
- type: avg
children:
- type: mul
children:
- 2.0
- type: test-result
test: "Test 01"
- type: mul
children:
- 3.0
- type: test-result
test: "Test 02"
- type: test-result
test: "Test 02"
- 5.0
```
Loading…
Cancel
Save