FlaggedDoubleBuffer

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

A Double buffer that supports flags for each value like NaN or Missing.

Constructors

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

Functions

Link copied to clipboard
open operator override fun get(index: Int): Double?

Gets element at given index.

Link copied to clipboard
open override fun getFlag(index: Int): Byte
Link copied to clipboard
open operator override fun iterator(): Iterator<Double?>

Iterates over all elements.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val flags: ByteArray
Link copied to clipboard
open override val size: Int

The size of this buffer.

Link copied to clipboard
val values: DoubleArray

Extensions

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

Sources

Link copied to clipboard