/* file: df_hyperparameter.cpp */
/*******************************************************************************
* Copyright contributors to the oneDAL project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/

/*
//++
//  Implementation of performance-related hyperparameters of the decision_forest algorithm.
//--
*/

#include <stdint.h>
#include "src/algorithms/dtrees/forest/df_hyperparameter_impl.h"

namespace daal
{
namespace algorithms
{
namespace decision_forest
{
namespace internal
{

Hyperparameter::Hyperparameter() : algorithms::Hyperparameter(hyperparameterIdCount, doubleHyperparameterIdCount) {}

services::Status Hyperparameter::set(HyperparameterId id, DAAL_INT64 value)
{
    return this->algorithms::Hyperparameter::set(uint32_t(id), value);
}

services::Status Hyperparameter::set(DoubleHyperparameterId id, double value)
{
    return this->algorithms::Hyperparameter::set(uint32_t(id), value);
}

services::Status Hyperparameter::find(HyperparameterId id, DAAL_INT64 & value) const
{
    return this->algorithms::Hyperparameter::find(uint32_t(id), value);
}

services::Status Hyperparameter::find(DoubleHyperparameterId id, double & value) const
{
    return this->algorithms::Hyperparameter::find(uint32_t(id), value);
}

} // namespace internal
} // namespace decision_forest
} // namespace algorithms
} // namespace daal
