Package parsimony :: Package functions :: Module properties :: Class IndicatorFunction
[hide private]
[frames] | no frames]

Class IndicatorFunction

source code

object --+    
         |    
  Function --+
             |
            IndicatorFunction
Known Subclasses:

Represents an indicator function.

I.e. f(x) = 0 if x is in the associated set and infinity otherwise.

Instance Methods [hide private]
 
f(self, *args, **kwargs)
Function value.
source code

Inherited from Function: get_params, reset, set_params

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __metaclass__ = abc.ABCMeta
Metaclass for defining Abstract Base Classes (ABCs).

Inherited from Function: __abstractmethods__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

f(self, *args, **kwargs)

source code 

Function value.

Decorators:
  • @abc.abstractmethod
Overrides: Function.f