Package PyDSTool :: Module MProject :: Class binary_feature
[hide private]
[frames] | no frames]

Class binary_feature

source code

object --+            
         |            
   feature --+        
             |        
  feature_leaf --+    
                 |    
   ql_feature_leaf --+
                     |
                    binary_feature

Use this as a binary switch feature, toggled by a given variable name 'varname' that is supplied in the pars dict at initialization.

Instance Methods [hide private]
 
evaluate(self, target) source code
 
_find_idx(self)
Internal function for finding index in trajectory meshpoints at which containment first failed.
source code

Inherited from feature_leaf: __repr__, __str__, set_ref_traj

Inherited from feature_leaf (private): _residual_info

Inherited from feature: __call__, __eq__, __hash__, __init__, __ne__, finish, info, postprocess_ref_traj, prepare, reset_metric, validate

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

evaluate(self, target)

source code 
Overrides: feature.evaluate

_find_idx(self)

source code 

Internal function for finding index in trajectory meshpoints at which containment first failed. Defaults to returning None and must be overridden by a class that has access to a mesh.

Overrides: feature._find_idx
(inherited documentation)