SlidingWindowPercentile

final case class SlidingWindowPercentile[A](in: GE[A], winSize: I, medianLen: I, frac: D, interp: I)(implicit num: Num[A]) extends SingleOut[A] with ProductWithAdjuncts

A UGen that reports a percentile of a sliding window across every cell of a window'ed input (such as an image).

The UGen starts outputting values immediately, even if the medianLen is not yet reached. This is because medianLen can be modulated (per input window). If one wants to discard the initial values, use a drop, for example for medianLen/2 * winSize frames.

Note that for an even median length and no interpolation, the reported median may be either the value at index medianLen/2 or medianLen/2 + 1 in the sorted window.

All arguments but in are polled per input window. Changing the frac value may cause an internal table rebuild and can thus be expensive.

Value parameters:
frac

the percentile from zero to one. The default of 0.5 produces the median.

in

the window'ed input to analyze

interp

if zero (default), uses nearest-rank, otherwise uses linear interpolation. '''Note:''' currently not implemented, must be zero

medianLen

the length of the sliding median window (the filter window applied to every cell of the input window)

winSize

the size of the input windows

Companion:
object
trait Serializable
trait ProductWithAdjuncts
trait SingleOut[A]
trait Lazy[A]
trait GE[A]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

override def adjuncts: List[Adjunct]
Definition Classes
ProductWithAdjuncts

Inherited methods

final def name: String
Inherited from:
UGenSource
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product