or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

array-creation.mdbinning-histogramming.mdcoordinate-systems.mdcore-data-structures.mdindex.mdinput-output.mdmathematical-operations.mdreduction-operations.mdscipy-integration.mdshape-operations.mdspatial-operations.mdtesting-utilities.mdunits-system.mdvisualization.md

reduction-operations.mddocs/

0

# Reduction Operations

1

2

Statistical reduction functions along dimensions with comprehensive NaN handling and uncertainty propagation.

3

4

## Capabilities

5

6

### Statistical Reductions

7

8

Functions for computing statistics along specified dimensions with automatic uncertainty propagation.

9

10

```python { .api }

11

def sum(x, dim=None):

12

"""Sum along dimensions"""

13

14

def mean(x, dim=None):

15

"""Mean along dimensions"""

16

17

def std(x, dim=None):

18

"""Standard deviation along dimensions"""

19

20

def var(x, dim=None):

21

"""Variance along dimensions"""

22

23

def median(x, dim=None):

24

"""Median along dimensions"""

25

26

def min(x, dim=None):

27

"""Minimum along dimensions"""

28

29

def max(x, dim=None):

30

"""Maximum along dimensions"""

31

32

def all(x, dim=None):

33

"""Check if all values are true"""

34

35

def any(x, dim=None):

36

"""Check if any values are true"""

37

```

38

39

### NaN-Handling Reductions

40

41

Statistical functions that ignore NaN values during computation.

42

43

```python { .api }

44

def nansum(x, dim=None):

45

"""Sum along dimensions ignoring NaN"""

46

47

def nanmean(x, dim=None):

48

"""Mean along dimensions ignoring NaN"""

49

50

def nanstd(x, dim=None):

51

"""Standard deviation ignoring NaN"""

52

53

def nanvar(x, dim=None):

54

"""Variance ignoring NaN"""

55

56

def nanmedian(x, dim=None):

57

"""Median ignoring NaN"""

58

59

def nanmin(x, dim=None):

60

"""Minimum ignoring NaN"""

61

62

def nanmax(x, dim=None):

63

"""Maximum ignoring NaN"""

64

```