object na
na
provides syntactic sugar for constructing primitives recognized as
NA. A use case is be:
Vec[Int](1,2,na,4)
na
will implicitly convert to a primitive having the designated missing
value bit pattern. That pattern is as follows:
- byte => Byte.MinValue
- char => Char.MinValue
- short => Short.Minvalue
- int => Int.MinValue
- long => Long.MinValue
- float => Float.NaN
- double => Double.NaN
The NA bit pattern for integral types is MinValue
because it induces a
symmetry on the remaining bound of values; e.g. the remaining Byte
bound
is (-127, +127).
Note since Boolean
s can only take on two values, it has no na
primitive bit pattern.
- Alphabetic
- By Inheritance
- na
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit val naToByte: (na.type) => Byte
- implicit val naToChar: (na.type) => Char
- implicit val naToDouble: (na.type) => Double
- implicit val naToFloat: (na.type) => Float
- implicit val naToInt: (na.type) => Int
- implicit val naToLong: (na.type) => Long
- implicit val naToShort: (na.type) => Short
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def to[T](implicit fn: (na.type) => T): T
Generates a primitive missing value bit pattern.
- def toString(): String
- Definition Classes
- na → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()