HInterpolationType
A interpolation type representation.
Supports Cubic, Linear, Quadratic and Nearest types.
Methods
print() source
Prints the HInterpolationType.
Differently from R’s behaviour, print doesn’t return the value invisibly.
Examples
library(harmonium)
interpolationtype = HInterpolationType$Cubic
interpolationtype$print()
# or similarly:
print(interpolationtype)eq
eq(other: HInterpolationType) -> bool source
Equality with another HInterpolationType.
Arguments
other
An HInterpolationType.
Returns
A bool.
Examples
library(harmonium)
interpolationtype1 = HInterpolationType$Cubic
interpolationtype2 = HInterpolationType$Cubic
interpolationtype1$eq(interpolationtype2) # TRUE
# or similarly:
interpolationtype1 == interpolationtype2ne
ne(other: HInterpolationType) -> bool source
Difference with another HInterpolationType.
Arguments
other
An HInterpolationType.
Returns
A bool.
Examples
library(harmonium)
interpolationtype1 = HInterpolationType$Cubic
interpolationtype2 = HInterpolationType$Cubic
interpolationtype1$ne(interpolationtype2) # FALSE
# or similarly:
interpolationtype1 != interpolationtype2