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

scipy-integration.mddocs/

0

# SciPy Integration

1

2

Wrappers for SciPy functionality including optimization, interpolation, signal processing, and image processing.

3

4

## Capabilities

5

6

### Optimization Functions

7

8

Scientific optimization and curve fitting with automatic unit handling.

9

10

```python { .api }

11

def curve_fit(f, data, **kwargs):

12

"""

13

Non-linear least squares curve fitting

14

15

Args:

16

f (callable): Model function

17

data (DataArray): Data to fit

18

**kwargs: Additional fitting parameters

19

20

Returns:

21

tuple: Optimal parameters and covariance matrix

22

"""

23

```

24

25

### Interpolation Functions

26

27

Data interpolation with dimension-aware coordinate handling.

28

29

```python { .api }

30

def interp1d(data, dim, **kwargs):

31

"""

32

1D interpolation function

33

34

Args:

35

data (DataArray): Input data

36

dim (str): Interpolation dimension

37

**kwargs: Interpolation options

38

39

Returns:

40

callable: Interpolation function

41

"""

42

```

43

44

### Image Processing Functions

45

46

N-dimensional image filtering and processing operations.

47

48

```python { .api }

49

def gaussian_filter(x, *, sigma, **kwargs):

50

"""

51

Multidimensional Gaussian filter

52

53

Args:

54

x (Variable or DataArray): Input data

55

sigma: Standard deviation for Gaussian kernel

56

**kwargs: Additional filter parameters

57

58

Returns:

59

Variable or DataArray: Filtered data

60

"""

61

```