ade.examples.thermistor.Evaluator(Picklable)
class documentation
Part of ade.examples.thermistor
(View In Hierarchy)
I evaluate thermistor curve 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 | prefix2name | Returns the name of a parameter for the k'th thermistor, having a common prefix with the other thermistors. |
Method | values2args | Returns a subset list of parameter values to use as args in a call to curve
for the specified Yocto-MaxThermistor input k (1-6). |
Method | curve | Given a 1-D vector of resistances measured for one thermistor, followed by arguments defining curve parameters, returns a 1-D vector of temperatures (degrees C) for those resistances. |
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.
Returns the name of a parameter for the k'th thermistor, having a common prefix with the other thermistors.
Returns a subset list of parameter values to use as args in a call to curve
for the specified Yocto-MaxThermistor input k (1-6).
Given a 1-D vector of resistances measured for one thermistor, followed by arguments defining curve parameters, returns a 1-D vector of temperatures (degrees C) for those resistances.
The model implements this equation:
T = 1 / (A*b + B*b*ln(R) + C*c*ln(R)^2 + D*d*ln(R)^3 - 273.15
where R is in Ohms and T is in degrees C. Uppercase coefficients are for all thermistors and lowercase are for just the thermistor in question.