Class FVecArrayImpl.FVecFloatArrayImpl

java.lang.Object
biz.k11i.xgboost.util.FVecArrayImpl.FVecFloatArrayImpl
All Implemented Interfaces:
FVec, Serializable
Enclosing class:
FVecArrayImpl

static class FVecArrayImpl.FVecFloatArrayImpl extends Object implements FVec
  • Field Details

    • values

      private final float[] values
    • treatsZeroAsNA

      private final boolean treatsZeroAsNA
  • Constructor Details

    • FVecFloatArrayImpl

      FVecFloatArrayImpl(float[] values, boolean treatsZeroAsNA)
  • Method Details

    • fvalue

      public float fvalue(int index)
      Description copied from interface: FVec
      Gets index-th value.
      Specified by:
      fvalue in interface FVec
      Parameters:
      index - index
      Returns:
      value