src/DataStorage.cpp
ArrayI8 EchoBay::DataStorage::init_array(const int size, const std::string &problemType, const std::string &fitnessFunction)
{
    if (problemType == "Classification")
    {
        return ArrayI8::Constant(size, 0);
    }
    else if (problemType == "Regression" || problemType == "MemoryCapacity")
    {
        return ArrayI8::Constant(size, 1);
    }
    else // Unsupervised
    {
        return fitnessFunction == "KMeans" ? ArrayI8::Constant(size, 0) : ArrayI8::Constant(size, 1);
    }
}
/**
 * @brief Initialize sampling vector according to problem
 * 
 * @param size Size of the desired array
 * @param problemType Classification or Regression/Memory or unsupervised
 * @param fitnessFunction fitness function necessary for unsupervised init
 * @return ArrayI8 initialized array
 */
@brief Initialize sampling vector according to problem

@param size Size of the desired array
@param problemType Classification or Regression/Memory or unsupervised
@param fitnessFunction fitness function necessary for unsupervised init
@return ArrayI8 initialized array
@brief Initialize sampling vector according to problem @param size Size of the desired array @param problemType Classification or Regression / Memory or unsupervised @param fitnessFunction fitness function necessary for unsupervised init @return ArrayI8 initialized array
ArrayI8 EchoBay::DataStorage::init_array(const int size, const std::string &problemType, const std::string &fitnessFunction)
{
    if (problemType == "Classification")
    {
        return ArrayI8::Constant(size, 0);
    }
    else if (problemType == "Regression" || problemType == "MemoryCapacity")
    {
        return ArrayI8::Constant(size, 1);
    }
    else 
    {
        return fitnessFunction == "KMeans" ? ArrayI8::Constant(size, 0) : ArrayI8::Constant(size, 1);
    }
}
ArrayI8 EchoBay :: DataStorage :: init_array ( const int size , const std :: string & problemType , const std :: string & fitnessFunction ) { if ( problemType == " " ) { return ArrayI8 :: Constant ( size , 0 ) ; } else if ( problemType == " " || problemType == " " ) { return ArrayI8 :: Constant ( size , 1 ) ; } else { return fitnessFunction == " " ? ArrayI8 :: Constant ( size , 0 ) : ArrayI8 :: Constant ( size , 1 ) ; } }
@brief Initialize sampling vector according to problem
@brief Initialize sampling vector according to problem
// Unsupervised