ade.examples.voc.Evaluator(Picklable) class documentation
Part of ade.examples.voc
(View In Hierarchy)
I evaluate battery VOC model fitness.
Construct an instance of me, run the setup method,
and wait (in non-blocking Twisted-friendly fashion) for the
Deferred it returns to fire. Then call the instance a bunch of
times with parameter values for a curve to get
a (deferred) sum-of-squared-error fitness of the curve to the thermistor
data.
| Method | setup | Returns a Deferred that fires with two equal-length
sequences, the names and bounds of all parameters to be determined. |
| Method | curve | No summary |
| Method | __call__ | Evaluation function for the parameter values. |
Inherited from Picklable:
| Method | __getstate__ | Undocumented |
| Method | __setstate__ | Undocumented |
Returns a Deferred that fires with two equal-length
sequences, the names and bounds of all parameters to be determined.
Also creates a dict of indices in those sequences, keyed by parameter name.
Given a 1-D time vector followed by arguments defining curve parameters, returns a 1-D vector of battery voltage over that time with with no charge or discharge current, with one particular but unknown SOC.
The model implements this equation:
V = a1*exp(-t/b1+c1) + ... ak*exp(-t/bk+ck) + voc