GaussianFunction
Artifact: androidx.media3:media3-effect
@UnstableApi
class GaussianFunction : ConvolutionFunction1D
Implementation of a symmetric Gaussian function with a limited domain.
The half-width of the domain is sigma times numStdDev. Values strictly outside of that range are zero.
Summary
Public constructors |
|---|
GaussianFunction(Creates an instance. |
Public functions |
|
|---|---|
Float |
Returns the end of the domain. |
Float |
Returns the start of the domain. |
Boolean |
|
Int |
hashCode() |
Float |
Returns the value of the function at the |
Public constructors
GaussianFunction
GaussianFunction(
sigma: @FloatRange(from = 0.0, fromInclusive = false) Float,
numStandardDeviations: @FloatRange(from = 0.0, fromInclusive = false) Float
)
Creates an instance.
| Parameters | |
|---|---|
sigma: @FloatRange(from = 0.0, fromInclusive = false) Float |
The one standard deviation, in pixels. |
numStandardDeviations: @FloatRange(from = 0.0, fromInclusive = false) Float |
The half-width of function domain, measured in the number of standard deviations. |