> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Minkowski Distance

> AI context for Minkowski Distance. Not linked in navigation.

> This page is for AI assistant context only. To use this package, visit [community.ntop.com](https://community.ntop.com/packages/DaveMakesStuff/minkowski-distance).

> **Community submission — not verified by nTop.** This package was submitted by an outside community member and has not been reviewed or verified by nTop. Treat its accuracy, safety, and compatibility claims with appropriate caution.

## Summary

Calculate the Minkowski distance from a scalar field.

## Package Details

| Field            | Value                                                          |
| ---------------- | -------------------------------------------------------------- |
| **ID**           | `minkowski-distance`                                           |
| **Type**         | Block                                                          |
| **Author**       | DaveMakesStuff                                                 |
| **Version**      | 0.1.0                                                          |
| **nTop Version** | 4.12+                                                          |
| **Domain**       | Geometry                                                       |
| **Complexity**   | Intermediate                                                   |
| **Tags**         | `minkowski`, `Manhattan`, `Euclidean`, `Chebyshev`, `distance` |
| **License**      | MIT                                                            |
| **Verified**     | No                                                             |

***

Calculate the Minkowski distance of a scalar field.

P=1 returns Manhattan distance, P=2 returns Euclidean distance, P=10+ returns Chebyshev distance. When visualizing the distance from a point, the "unit ball" is an octahedron, sphere and cube respectively. P\<1 generates a concave star-like shape.

## Installation

Clone this repo or copy the package folder into your nTop workspace:

```bash theme={null}
git clone https://github.com/nTopology/Utilities.git
```

The package lives at `packages/DaveMakesStuff/minkowski-distance/`.

## Usage

1. Open the provided `.ntop` file in nTop 4.12+.
2. Input a unitless scalar field ad apply a P value.

## Inputs & outputs

| Name              | Type         | Notes                         |
| ----------------- | ------------ | ----------------------------- |
| `Field`           | Scalar Field | Field to modify               |
| `P`               | Scalar Value | Modifies the Minkowski output |
| `Minkowski Field` | Scalar Field | Output                        |

## License

MIT.

***

## Source

[https://community.ntop.com/packages/DaveMakesStuff/minkowski-distance](https://community.ntop.com/packages/DaveMakesStuff/minkowski-distance)
