[
  {
    "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)"
      }
    ]
  }
]
