{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {
    "Notes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "It is safe to just use the same "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "[0, 1)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " to integer mapping with QMC that you would use with MC. You still get unbiasedness, a strong law of large numbers, an asymptotically infinite variance reduction and a finite sample variance bound."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "To convert a sample from "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "[0, 1)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " to "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "[a, b), b>a"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", with "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "a"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " the lower bounds and "
            },
            {
              "__type": "InlineMath",
              "__tag": 4057,
              "value": "b"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " the upper bounds, the following transformation is used:"
            }
          ]
        },
        {
          "__type": "Math",
          "__tag": 4058,
          "value": "\\text{floor}((b - a) \\cdot \\text{sample} + a)"
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Raises": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Yields": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Methods": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Returns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Parameters",
          "__tag": 4026,
          "children": [
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "sample",
              "annotation": "array_like (n, d)",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "QMC sample."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Draw "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "n"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " integers from "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "l_bounds"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " (inclusive) to "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "u_bounds"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " (exclusive), or if endpoint=True, "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "l_bounds"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " (inclusive) to "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "u_bounds"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " (inclusive)."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Receives": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warnings": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Attributes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Parameters",
          "__tag": 4026,
          "children": [
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "l_bounds",
              "annotation": "int or array-like of ints",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Lowest (signed) integers to be drawn (unless "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "u_bounds=None"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", in which case this parameter is 0 and this value is used for "
                    },
                    {
                      "__type": "ParamRef",
                      "__tag": 4071,
                      "name": "u_bounds"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ")."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "u_bounds",
              "annotation": "int or array-like of ints, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "If provided, one above the largest (signed) integer to be drawn (see above for behavior if "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "u_bounds=None"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "). If array-like, must contain integer values."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "n",
              "annotation": "int, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Number of samples to generate in the parameter space. Default is 1."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "endpoint",
              "annotation": "bool, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "If true, sample from the interval "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "[l_bounds, u_bounds]"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " instead of the default "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "[l_bounds, u_bounds)"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ". Defaults is False."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "workers",
              "annotation": "int, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Number of workers to use for parallel processing. If -1 is given all CPU threads are used. Only supported when using "
                    },
                    {
                      "__type": "CrossRef",
                      "__tag": 4002,
                      "value": "Halton",
                      "reference": {
                        "__type": "LocalRef",
                        "__tag": 4022,
                        "kind": "module",
                        "path": "scipy.stats._qmc:Halton"
                      },
                      "kind": "module"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " Default is 1."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Extended Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Other Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    }
  },
  "_ordered_sections": [
    "Summary",
    "Extended Summary",
    "Parameters",
    "Attributes",
    "Methods",
    "Returns",
    "Yields",
    "Receives",
    "Other Parameters",
    "Raises",
    "Warns",
    "Warnings",
    "Notes"
  ],
  "item_file": "/scipy/stats/_qmc.py",
  "item_line": 1003,
  "item_type": "function",
  "aliases": [
    "scipy.stats._qmc.QMCEngine.integers"
  ],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": {
    "__type": "SignatureNode",
    "__tag": 4029,
    "kind": "function",
    "parameters": [
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "self",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": {
          "__type": "Empty",
          "__tag": 4031
        }
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "l_bounds",
        "annotation": "npt.ArrayLike",
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": {
          "__type": "Empty",
          "__tag": 4031
        }
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "u_bounds",
        "annotation": "npt.ArrayLike | None",
        "kind": "KEYWORD_ONLY",
        "default": "None"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "n",
        "annotation": "IntNumber",
        "kind": "KEYWORD_ONLY",
        "default": "1"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "endpoint",
        "annotation": "bool",
        "kind": "KEYWORD_ONLY",
        "default": "False"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "workers",
        "annotation": "IntNumber",
        "kind": "KEYWORD_ONLY",
        "default": "1"
      }
    ],
    "return_annotation": "np.ndarray",
    "target_name": "integers"
  },
  "references": null,
  "qa": "scipy.stats._qmc:QMCEngine.integers",
  "arbitrary": [],
  "local_refs": [
    "endpoint",
    "l_bounds",
    "n",
    "sample",
    "u_bounds",
    "workers"
  ]
}