Implemented weight setter.

This commit is contained in:
Andru Liu
2024-10-08 21:10:45 -07:00
parent c3be2c3010
commit 5d90bf31be
+7
View File
@@ -81,3 +81,10 @@ double RBFModel::get_weight(int index) const {
return weights[index];
}
/**
* @brief Set the weight at a specific index.
*/
void RBFModel::set_weight(int index, double value) {
if (index < 0 || index >= numCenters) return;
weights[index] = value;
}