Public Member Functions | |
PolyNomial () | |
PolyNomial (const PolyNomial &pl) | |
PolyNomial (PolyNomial &pl) | |
~PolyNomial () | |
void | Clear () |
void | Copy (PolyNomial &pl) |
void | Copy (const PolyNomial &pl) |
void | operator= (PolyNomial &pl) |
void | operator= (const PolyNomial &pl) |
double | ComputePlValue (const Array< double > &vars) |
double | ComputePlValue () |
PolyNomial | GetGradient (int varInIdx) |
Array< double > | GetGradient () |
void | Normalize () |
bool | NormalizeGaussian () |
void | ReadFrom (istream &is) |
void | PrintVars (ostream &os) const |
void | PrintTo (ostream &os) const |
void | PrintCoef (ostream &os, double coef) const |
void | MultiplyConst (double coef) |
void | GetGaussianPara (double *miu, double *stdev) |
void | AddPl (const PolyNomial &pl) |
double | GetHighestOrder (int varInIdx) |
bool | AddVar (const string &var) |
bool | AddItem (const VarCont &item, double coef) |
void | SetVarName (const Array< string > &varName) |
void | SetVarValue (const Array< double > &varValue) |
void | SetConstantValue (double val) |
double | GetConstantValue () |
void | ReduceToOneVar (const Array< double > &vars, int varIdx) |
void | ReduceToOneVar (int varIdx) |
string | GenerateItemString (const VarCont &vc) |
DoubleRange | SolvePoly2 (double d) |
DoubleRange | SolvePoly2 (double a, double b, double c, double d) |
double | QuadraticOptimization () |
const Array< double > & | GetVarValue () const |
double | GetVarValue (int varIdx) |
void | ClearVarValue () |
void | AppendVarValue (double value) |
const int | GetVarNum () const |
const string & | GetVarAt (int varIdx) const |
int | GetVarIdx (string &var) const |
const double & | GetCoef (int varIdx) const |
const Array< string > & | GetVar () const |
const map< string, int > & | GetVarSearch () const |
double | ComputeItem (int itemIdx) |
bool | IsQuadratic () |
int | Optimize2 (Array< double > *vars, double *optValue) |
Public Attributes | |
Array< double > | varValue_ |
int | numVar_ |
int | numItems_ |
double | constValue_ |
QuadraticPolyPara | gpara_ |
Array< string > | strItems_ |
Array< double > | coef_ |
Array< VarCont > | items_ |
Array< string > | var_ |
map< string, int > | varsearch_ |
Classes | |
struct | QuadraticPolyPara |
Definition at line 33 of file Polynomial.h.