FlaggedDoubleBuffer

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

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

Constructors

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

Functions

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
iterator
Link copied to clipboard
common
open operator override fun iterator(): Iterator<Double?>
Iterates over all elements.

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 FlaggedDoubleBuffer.forEachValid(block: (Double) -> Unit)