#include <PowerSpicedComponent.h>
Definition at line 56 of file PowerSpicedComponent.h.
PowerSpicedComponent::PowerSpicedComponent |
( |
float(*)(int num_inputs, float transistor_size) |
usage_fn | ) |
|
Definition at line 76 of file PowerSpicedComponent.c.
float(* component_usage)(int num_inputs, float transistor_size)
PowerCallibInputs * add_entry(int num_inputs)
void PowerSpicedComponent::add_data_point |
( |
int |
num_inputs, |
|
|
float |
transistor_size, |
|
|
float |
power |
|
) |
| |
void PowerSpicedComponent::callibrate |
( |
void |
| ) |
|
Definition at line 218 of file PowerSpicedComponent.c.
221 for (vector<PowerCallibInputs*>::iterator it =
entries.begin();
std::vector< PowerCallibInputs * > entries
Definition at line 95 of file PowerSpicedComponent.c.
96 vector<PowerCallibInputs*>::iterator it;
99 if ((*it)->num_inputs == num_inputs) {
std::vector< PowerCallibInputs * > entries
PowerCallibInputs * add_entry(int num_inputs)
PowerCallibInputs * PowerSpicedComponent::get_entry_bound |
( |
bool |
lower, |
|
|
int |
num_inputs |
|
) |
| |
Definition at line 111 of file PowerSpicedComponent.c.
116 for (vector<PowerCallibInputs*>::iterator it =
entries.begin() + 1;
118 if ((*it)->num_inputs > num_inputs) {
std::vector< PowerCallibInputs * > entries
bool PowerSpicedComponent::is_done_callibration |
( |
void |
| ) |
|
float PowerSpicedComponent::scale_factor |
( |
int |
num_inputs, |
|
|
float |
transistor_size |
|
) |
| |
Definition at line 144 of file PowerSpicedComponent.c.
153 float factor_lower = 0.;
154 float factor_upper = 0.;
172 factor_lower = perc_upper * size_upper->
factor
173 + (1 - perc_upper) * size_lower->
factor;
184 factor_upper = perc_upper * size_upper->
factor
185 + (1 - perc_upper) * size_lower->
factor;
189 factor = factor_upper;
190 }
else if (!inputs_upper) {
191 factor = factor_lower;
195 ((float) (num_inputs - inputs_lower->
num_inputs))
198 factor = perc_upper * factor_upper + (1 - perc_upper) * factor_lower;
PowerCallibInputs * get_entry_bound(bool lower, int num_inputs)
void PowerSpicedComponent::sort_me |
( |
void |
| ) |
|
Definition at line 208 of file PowerSpicedComponent.c.
211 for (vector<PowerCallibInputs*>::iterator it =
entries.begin();
bool sorter_PowerCallibInputs(PowerCallibInputs *a, PowerCallibInputs *b)
std::vector< PowerCallibInputs * > entries
float(* PowerSpicedComponent::component_usage)(int num_inputs, float transistor_size) |
bool PowerSpicedComponent::done_callibration |
bool PowerSpicedComponent::sorted |
The documentation for this class was generated from the following files: