# forge.ta.median

```python
forge.ta.median(source: ArrayLike, period: int = 20) -> np.ndarray
```

Median of the last ``period`` values. NaN where the window holds a missing value.

Since Forge API 1.

## Class forge.ta.Median

```python
forge.ta.Median(**inputs: Any) -> None
```

Middle value of the last N values, so one spike cannot move it.

Median[i] = the middle of the sorted values x[i-period+1] to x[i]

With an even period it is the mean of the two middle values. A window holding a missing value has no value.

Since Forge API 1.
