All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.datavec.dataframe.columns.FloatColumnUtils Maven / Gradle / Ivy

Go to download

High-performance Java Dataframe with integrated columnar storage (fork of tablesaw)

There is a newer version: 0.9.1
Show newest version
package org.datavec.dataframe.columns;

import it.unimi.dsi.fastutil.ints.IntIterable;
import org.datavec.dataframe.filtering.FloatBiPredicate;
import org.datavec.dataframe.filtering.FloatPredicate;

/**
 *
 */
public interface FloatColumnUtils extends Column, IntIterable {

    FloatPredicate isZero = i -> i == 0.0f;

    FloatPredicate isNegative = i -> i < 0f;

    FloatPredicate isPositive = i -> i > 0f;

    FloatPredicate isNonNegative = i -> i >= 0f;

    FloatBiPredicate isGreaterThan = (valueToTest, valueToCompareAgainst) -> valueToTest > valueToCompareAgainst;

    FloatBiPredicate isGreaterThanOrEqualTo =
                    (valueToTest, valueToCompareAgainst) -> valueToTest >= valueToCompareAgainst;

    FloatBiPredicate isLessThan = (valueToTest, valueToCompareAgainst) -> valueToTest < valueToCompareAgainst;

    FloatBiPredicate isLessThanOrEqualTo = (valueToTest, valueToCompareAgainst) -> valueToTest <= valueToCompareAgainst;

    FloatBiPredicate isEqualTo = (valueToTest, valueToCompareAgainst) -> valueToTest == valueToCompareAgainst;

    FloatBiPredicate notIsEqualTo = (valueToTest, valueToCompareAgainst) -> valueToTest != valueToCompareAgainst;


    FloatPredicate isMissing = i -> i != i;

    FloatPredicate isNotMissing = i -> i == i;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy