-/* $Id$
-
-This file is part of R²C²
-Copyright © 2011 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#include "speedquantizer.h"
using namespace std;
weight_limit(10)
{
if(n<1)
- throw InvalidParameterValue("Must have at leats one speed step");
+ throw invalid_argument("SpeedQuantizer::SpeedQuantizer");
}
void SpeedQuantizer::learn(unsigned i, float s, float w)
{
if(i>=steps.size())
- throw InvalidParameterValue("Speed step index out of range");
+ throw out_of_range("SpeedQuantizer::learn");
steps[i].add(s, w);
}