![]() |
OR-Tools
9.6
|
Definition at line 39 of file sharded_optimization_utils.h.
Public Member Functions | |
| ShardedWeightedAverage (const Sharder *sharder) | |
| ShardedWeightedAverage (ShardedWeightedAverage &&)=default | |
| ShardedWeightedAverage & | operator= (ShardedWeightedAverage &&)=default |
| void | Add (const Eigen::VectorXd &datapoint, double weight) |
| void | Clear () |
| bool | HasNonzeroWeight () const |
| double | Weight () const |
| Eigen::VectorXd | ComputeAverage () const |
| int | NumTerms () const |
|
explicit |
Definition at line 43 of file sharded_optimization_utils.cc.
|
default |
| void Add | ( | const Eigen::VectorXd & | datapoint, |
| double | weight | ||
| ) |
Definition at line 54 of file sharded_optimization_utils.cc.
| void Clear | ( | ) |
Definition at line 68 of file sharded_optimization_utils.cc.
| VectorXd ComputeAverage | ( | ) | const |
Definition at line 74 of file sharded_optimization_utils.cc.
|
inline |
Definition at line 58 of file sharded_optimization_utils.h.
|
inline |
Definition at line 68 of file sharded_optimization_utils.h.
|
default |
|
inline |
Definition at line 61 of file sharded_optimization_utils.h.