# Distance

Calculate distances between each pair of columns among specified set of columns.

## Input Data

Input data should contain following columns.

* Variable Columns - Set of numeric or logical columns. Distances for all posssible pairs among those columns are calculated.

## Properties

* Analytics Properties
  * Method - Method to calculate distances
  * Show Only Lower Triangle - Show only lower triangle of the matrix, avoiding showing distances for same pairs twice.
  * Show Diagonal Values - Show values on diagonal of the matrix, which should always have distance of 0.
* Clustering
  * Number of Clusters - Number of clusters (by K-Means algorithm) used when clustring columns to display them on Similarity Map view.
  * Random Seed - Seed used to generate random numbers. Specify this value to always reproduce the same result.

## How to Use This Feature

1. Click Analytics View tab.
2. If necessary, click "+" button on the left of existing Analytics tabs, to create a new Analytics.
3. Select "Distance by Columns" for Type.
4. Select Variable Columns.
5. Set Analytics Properties if necessary.
6. Click Run button to run the analytics.
7. Select view type by clicking view type link to see each type of generated visualization.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.exploratory.io/analytics/distance_column.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
