Files
nosqlbench/nbr/src/main/resources/examples/bindings_double.yaml
2023-10-23 19:54:17 -05:00

41 lines
1.0 KiB
YAML

description: examples of bindings that produce doubles
scenarios:
default: run type===stdout format=readout
# If you want to control the output, uncomment and edit the statement template below
# and modify the named anchors to suit your output requirements.
#statements:
# example1: "{fullname}\n"
bindings:
# All uncommented lines under this are indented, so they become named bindings below
# the entry above
# Normally, the value that you get with a cycle starts at 0:
cycleNum: Identity();
# here we convert the cycle number to a double:
id: Identity(); ToDouble()
## Sensor value
sensor_value: Normal(0.0,5.0); Add(100.0) -> double
# Example output:
# sensor_value : 97.65195455640468
# sensor_value : 102.36957817450308
# sensor_value : 106.1618147543308
# sensor_value : 105.69436460281086
# sensor_value : 95.76439295584129
# sensor_value : 99.79975449386073
# sensor_value : 102.3330464938251
# sensor_value : 100.58103001489948
# sensor_value : 99.15058382227814
# sensor_value : 97.17512591189272