FlaggedRealBuffer

class FlaggedRealBuffer(values: DoubleArray, flags: ByteArray) : FlaggedBuffer<Double?> , Buffer<Double?>

A real buffer which supports flags for each value like NaN or Missing

Constructors

FlaggedRealBuffer
Link copied to clipboard
common
fun FlaggedRealBuffer(values: DoubleArray, flags: ByteArray)

Functions

contentEquals
Link copied to clipboard
common
open fun contentEquals(other: Buffer<*>): Boolean
Checks content equality with another buffer.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
get
Link copied to clipboard
common
open operator override fun get(index: Int): Double?
Gets element at given index.
getFlag
Link copied to clipboard
common
open override fun getFlag(index: Int): Byte
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
iterator
Link copied to clipboard
common
open operator override fun iterator(): Iterator<Double?>
Iterates over all elements.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

flags
Link copied to clipboard
common
val flags: ByteArray
size
Link copied to clipboard
common
open override val size: Int
The size of this buffer.
values
Link copied to clipboard
common
val values: DoubleArray

Extensions

forEachValid
Link copied to clipboard
common
inline fun FlaggedRealBuffer.forEachValid(block: (Double) -> Unit)