# ConvolutionFunction1D

Artifact: [androidx.media3:media3-effect](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/effect/ConvolutionFunction1D.java+class:androidx.media3.effect.ConvolutionFunction1D)

*** ** * ** ***


```
@UnstableApi
public interface ConvolutionFunction1D
```

<br />

Known direct subclasses [GaussianFunction](https://developer.android.com/reference/androidx/media3/effect/GaussianFunction)

|---|---|
| `https://developer.android.com/reference/androidx/media3/effect/GaussianFunction` | Implementation of a symmetric Gaussian function with a limited domain. |

*** ** * ** ***

An interface for 1 dimensional convolution functions.

The domain defines the region over which the function operates, in pixels.

## Summary

| ### Nested types |
|---|
| `public interface https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D.Provider` A configurable provider for `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D` instances. |

| ### Public methods |
|---|---|
| `abstract float` | `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D#domainEnd()()` Returns the end of the domain. |
| `abstract float` | `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D#domainStart()()` Returns the start of the domain. |
| `abstract float` | `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D#value(float)(float samplePosition)` Returns the value of the function at the `samplePosition`. |
| `default float` | `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D#width()()` Returns the width of the domain. |

## Public methods

### domainEnd

```
abstract float domainEnd()
```

Returns the end of the domain.

### domainStart

```
abstract float domainStart()
```

Returns the start of the domain.

### value

```
abstract float value(float samplePosition)
```

Returns the value of the function at the `samplePosition`.

### width

```
default float width()
```

Returns the width of the domain.