示例#1
0
 def __init__(self, source = None, alpha = None):
     from marketsim.gen._out._const import const_Float as _const_Float
     from marketsim import rtti
     self.source = source if source is not None else _const_Float(1.0)
     self.alpha = alpha if alpha is not None else 0.015
     rtti.check_fields(self)
     EWMA_Impl.__init__(self)
示例#2
0
 def reset(self):
     EWMA_Impl.reset(self)
示例#3
0
 def bind_impl(self, ctx):
     EWMA_Impl.bind_impl(self, ctx)
示例#4
0
 def __init__(self, x = None):
     from marketsim.gen._out.math._ew import EW_IObservableFloatFloat as _math_EW_IObservableFloatFloat
     from marketsim import deref_opt
     self.x = x if x is not None else deref_opt(_math_EW_IObservableFloatFloat())
     EWMA_Impl.__init__(self)
示例#5
0
 def __init__(self, source = None, alpha = None):
     from marketsim.gen._out._constant import constant
     self.source = source if source is not None else constant()
     self.alpha = alpha if alpha is not None else 0.015
     EWMA_Impl.__init__(self)
示例#6
0
 def __init__(self, source = None, alpha = None):
     self.source = source if source is not None else const()
     self.alpha = alpha if alpha is not None else 0.015
     EWMA_Impl.__init__(self)
示例#7
0
 def reset(self):
     EWMA_Impl.reset(self)
示例#8
0
 def bind_impl(self, ctx):
     EWMA_Impl.bind_impl(self, ctx)
示例#9
0
 def __init__(self, x=None):
     from marketsim.gen._out.math._ew import EW_IObservableFloatFloat as _math_EW_IObservableFloatFloat
     from marketsim import deref_opt
     self.x = x if x is not None else deref_opt(
         _math_EW_IObservableFloatFloat())
     EWMA_Impl.__init__(self)