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)
= HInterpolationType$Cubic
interpolationtype $print()
interpolationtype
# or similarly:
print(interpolationtype)
eq
eq(other: HInterpolationType) -> bool
source
Equality with another HInterpolationType
.
Arguments
other
An HInterpolationType
.
Returns
A bool
.
Examples
library(harmonium)
= HInterpolationType$Cubic
interpolationtype1 = HInterpolationType$Cubic
interpolationtype2 $eq(interpolationtype2) # TRUE
interpolationtype1
# or similarly:
== interpolationtype2 interpolationtype1
ne
ne(other: HInterpolationType) -> bool
source
Difference with another HInterpolationType
.
Arguments
other
An HInterpolationType
.
Returns
A bool
.
Examples
library(harmonium)
= HInterpolationType$Cubic
interpolationtype1 = HInterpolationType$Cubic
interpolationtype2 $ne(interpolationtype2) # FALSE
interpolationtype1
# or similarly:
!= interpolationtype2 interpolationtype1