34 #ifndef __GUESSLAMBDAMODIFIERS__
35 #define __GUESSLAMBDAMODIFIERS__
50 void outputWhat( std::ostream& o )
const { o <<
"Error parsing the initial-adjustment parameter"; }
59 void outputWhat( std::ostream& o )
const { o <<
"Error parsing targets"; }
68 void outputWhat( std::ostream& o )
const { o <<
"Error parsing meta log"; }
77 void outputWhat( std::ostream& o )
const { o <<
"Mismatched vector sizes or lambda modifier indexes"; }
81 template<
typename TLambdaModifier >
113 double initialAdjustmentParameter,
114 double targetBitrate,
115 const std::list< Point >& pointList,
116 double interDampeningFactor );
128 double initialAdjustmentParameter,
129 const std::vector< double > &targetBitrateVector,
130 const std::list<
MetaLogEntry< std::vector< double > > >& metaLogEntryList );
144 std::istream& initialAdjustmentParameterIstream,
145 std::istream& targetsIstream,
146 std::istream& metaLogIstream );
void outputWhat(std::ostream &o) const
virtual ~TargetsParseException()
Contains a Lambda-modifier and bitrate for only a single index.
Thrown if there is an error parsing the initial adjustment parameter.
Thrown if there is an error parsing the targets.
std::vector< double > guessLambdaModifiers(double initialAdjustmentParameter, const std::vector< double > &targetBitrateVector, const std::list< MetaLogEntry< std::vector< double > > > &metaLogEntryList)
virtual ~MismatchedIndexesException()
TLambdaModifier lambdaModifiers
std::vector< double > bitrateVector
double polateLambdaModifier(double targetBitrate, const Point &point1, const Point &point2)
double guessLambdaModifier(double initialAdjustmentParameter, double targetBitrate, const std::list< Point > &pointList, double interDampeningFactor)
virtual ~InitialAdjustmentParameterParseException()
Thrown if there is a mismatch in the vector sizes or the Lambda-modifier indexes. ...
void outputWhat(std::ostream &o) const
This class serves the same purpose as std::runtime_error, but it can be more convenient to use...
void outputWhat(std::ostream &o) const