signaloid-cli samples from-ux-string
Get random samples from Ux strings.
Synopsis
signaloid-cli samples from-ux-string --ux-string <ux-string> [options]
Description
Retrieves random samples from distributions encoded in the Signaloid Ux Data format.
Options
| Option | Description |
|---|---|
--ux-string <ux-string> | Ux string |
--file <json> | Path to JSON file containing Ux strings |
--count <n> | Number of samples to generate (default varies) |
Output
Returns a JSON object containing the samples:
{
"Samples": [
73.84356675589083,
91.59354926109734,
70.10301729281879,
106.68099534386015,
105.82449373484222,
84.31393979524525,
101.78097634022632,
87.11928256834166,
99.13104926976496,
110.71537593174253,
114.09719300593405,
96.07508477635108,
91.77861425707087,
101.30136903655149,
75.26005648224918,
7.547119432500455,
23.583371155057904,
98.03199836275635,
108.55093477028771,
93.25156900405477,
101.8177489547463,
121.49833772311419,
34.923349216689914,
109.31142241528386,
111.21424766694186,
100.55218067403484,
110.2690197972133,
99.06808047748383,
106.0255246895095,
2.5098538979660416,
109.62579241382245,
44.84054524714496
],
"Count": 32
}
Examples
From File
# Read Ux strings from file
signaloid-cli samples from-ux-string \
--file ux-payload.json \
--count 1000
Exit Codes
| Code | Description |
|---|---|
0 | Success |
1 | Failed to fetch samples (invalid payload, API error) |
See Also
- signaloid-cli samples from-value-id - Get samples of a Reference core run using Task and Value ID.
- Signaloid Ux Data format documentation - Ux Data format specification