{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {
    "Notes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "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": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "No Docstrings"
            }
          ]
        }
      ],
      "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": [],
      "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/spatial/distance.py",
  "item_line": 0,
  "item_type": "module",
  "aliases": [
    "scipy.spatial.distance"
  ],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": null,
  "references": null,
  "qa": "scipy.spatial.distance",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Distance computations ("
        },
        {
          "__type": "InlineRole",
          "__tag": 4003,
          "value": "scipy.spatial.distance",
          "domain": null,
          "role": "mod",
          "inventory": null
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": ")"
        }
      ],
      "level": 0,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Distance matrix computation from a collection of raw observation vectors stored in a rectangular array."
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ".. autosummary:: \n    :toctree:generated/\n    pdist   -- pairwise distances between observation vectors.\n    cdist   -- distances between two collections of observation vectors\n    squareform -- convert distance matrix to a condensed one and vice versa\n    directed_hausdorff -- directed Hausdorff distance between arrays",
          "execution_status": null
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Predicates for checking the validity of distance matrices, both condensed and redundant. Also contained in this module are functions for computing the number of observations in a distance matrix."
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ".. autosummary:: \n    :toctree:generated/\n    is_valid_dm -- checks for a valid distance matrix\n    is_valid_y  -- checks for a valid condensed distance matrix\n    num_obs_dm  -- # of observations in a distance matrix\n    num_obs_y   -- # of observations in a condensed distance matrix",
          "execution_status": null
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Distance functions between two numeric vectors "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "u"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "v"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". Computing distances over a large collection of vectors is inefficient for these functions. Use "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "pdist"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " for this purpose."
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ".. autosummary:: \n    :toctree:generated/\n    braycurtis       -- the Bray-Curtis distance.\n    canberra         -- the Canberra distance.\n    chebyshev        -- the Chebyshev distance.\n    cityblock        -- the Manhattan distance.\n    correlation      -- the Correlation distance.\n    cosine           -- the Cosine distance.\n    euclidean        -- the Euclidean distance.\n    jensenshannon    -- the Jensen-Shannon distance.\n    mahalanobis      -- the Mahalanobis distance.\n    minkowski        -- the Minkowski distance.\n    seuclidean       -- the normalized Euclidean distance.\n    sqeuclidean      -- the squared Euclidean distance.",
          "execution_status": null
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Distance functions between two boolean vectors (representing sets) "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "u"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "v"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ".  As in the case of numerical vectors, "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "pdist"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is more efficient for computing the distances between all pairs."
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ".. autosummary:: \n    :toctree:generated/\n    dice             -- the Dice dissimilarity.\n    hamming          -- the Hamming distance.\n    jaccard          -- the Jaccard distance.\n    rogerstanimoto   -- the Rogers-Tanimoto dissimilarity.\n    russellrao       -- the Russell-Rao dissimilarity.\n    sokalsneath      -- the Sokal-Sneath dissimilarity.\n    yule             -- the Yule dissimilarity.",
          "execution_status": null
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "hamming",
              "domain": null,
              "role": "func",
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " also operates over discrete numerical vectors."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Function reference"
        }
      ],
      "level": 1,
      "target": null
    }
  ],
  "local_refs": []
}