-
Notifications
You must be signed in to change notification settings - Fork 0
/
pareto.json
74 lines (74 loc) · 1.51 KB
/
pareto.json
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[
{
"modelParams": {
"name": "Main",
"description": "Example of calling other models as functions. Generates Pareto sample.",
"method": "MCMC",
"steps": 1
},
"methodParams": {
"samples": "2000"
},
"blocks": [
{
"name": "ParetoSample",
"history": false,
"show": true,
"type": "Expression",
"typeCode": 1,
"value": "Pareto(2,5)"
}
]
},
{
"modelParams": {
"name": "Pareto",
"description": "Receives two parameters: shape, scale. Returns a sample from the dist.",
"method": "deterministic",
"steps": 1
},
"methodParams": {
"samples": 1000
},
"blocks": [
{
"file": null,
"name": "shape",
"show": false,
"type": "Data",
"typeCode": 2,
"useAsParameter": true,
"value": "1"
},
{
"file": null,
"name": "scale",
"show": false,
"type": "Data",
"typeCode": 2,
"useAsParameter": true,
"value": "1"
},
{
"distribution": "Uniform",
"name": "U",
"once": false,
"params": {
"a": "0",
"b": "1"
},
"show": false,
"type": "Random Variable",
"typeCode": 0
},
{
"name": "output",
"history": false,
"show": true,
"type": "Expression",
"typeCode": 1,
"value": "scale / Math.pow(1 - U, 1/shape)"
}
]
}
]