A calculated parameter - potentially but not necessarily a circuit output - to be calculated and checked for error in the solution ranking process.
More...
A calculated parameter - potentially but not necessarily a circuit output - to be calculated and checked for error in the solution ranking process.
Definition at line 351 of file efind.py.
◆ __init__()
| None efind.Output.__init__ |
( |
|
self, |
|
|
str |
name, |
|
|
str |
unit, |
|
|
float |
expected, |
|
|
CalculateCall |
calculate |
|
) |
| |
- Parameters
-
| name | i.e. Vout |
| unit | i.e. V, A, Hz... |
| expected | The value that this parameter would assume under ideal circumstances |
| calculate | A callable accepting a sequence of floats - one per component, in the same order as they were passed to the Solver constructor; returning a float. |
Definition at line 357 of file efind.py.
◆ __str__()
| str efind.Output.__str__ |
( |
|
self | ) |
|
◆ error()
| float efind.Output.error |
( |
|
self, |
|
|
float |
value |
|
) |
| |
- Returns
- Absolute error, since the expected value might be 0
Definition at line 371 of file efind.py.
◆ calculate
The documentation for this class was generated from the following file: