src/DataStorage.cpp
int EchoBay::DataStorage::get_nBatches(Eigen::Ref<MatrixBO> samplingData)
{
    int nBatches = (samplingData.col(1).array() == 0).count();
    nBatches = nBatches <= 1 ? nBatches + 1 : nBatches;
    return nBatches;
}
/**
 * @brief Calculate the number of unique batches in samplingData
 * 
 * @param samplingData Eigen Matrix with sampling format
 * @return int Number of unique batches
 */
@brief Calculate the number of unique batches in samplingData

@param samplingData Eigen Matrix with sampling format
@return int Number of unique batches
@brief Calculate the number of unique batches in samplingData @param samplingData Eigen Matrix with sampling format @return int Number of unique batches
int EchoBay::DataStorage::get_nBatches(Eigen::Ref<MatrixBO> samplingData)
{
    int nBatches = (samplingData.col(1).array() == 0).count();
    nBatches = nBatches <= 1 ? nBatches + 1 : nBatches;
    return nBatches;
}
int EchoBay :: DataStorage :: get_nBatches ( Eigen :: Ref < MatrixBO > samplingData ) { int nBatches = ( samplingData . col ( 1 ) . array ( ) == 0 ) . count ( ) ; nBatches = nBatches <= 1 ? nBatches + 1 : nBatches ; return nBatches ; }
@brief Calculate the number of unique batches in samplingData
@brief Calculate the number of unique batches in samplingData