HResamplerType

A resampler type representation.

Supports FftFixedIn, FftFixedInOut, FftFixedOut, SincFixedIn, SincFixedOut, FastFixedIn and FastFixedOut types.

Methods

print

print() source

Prints the HResamplerType.

Differently from R’s behaviour, print doesn’t return the value invisibly.

Examples

library(harmonium)
hresamplertype = HResamplerType$SincFixedIn
hresamplertype$print()

# or similarly:
print(hresamplertype)

eq

eq(other: HResamplerType) -> bool source

Equality with another HResamplerType.

Arguments

  • other

An HResamplerType.

Returns

A bool.

Examples

library(harmonium)
hresamplertype1 = HResamplerType$SincFixedIn
hresamplertype2 = HResamplerType$SincFixedIn
hresamplertype1$eq(hresamplertype2) # TRUE

# or similarly:
hresamplertype1 == hresamplertype2

ne

ne(other: HResamplerType) -> bool source

Difference with another HResamplerType.

Arguments

  • other

An HResamplerType.

Returns

A bool.

Examples

library(harmonium)
hresamplertype1 = HResamplerType$SincFixedIn
hresamplertype2 = HResamplerType$SincFixedIn
hresamplertype1$ne(hresamplertype2) # FALSE

# or similarly:
hresamplertype1 != hresamplertype2