(self, mass, length, friction=0, dt=1 / 80,
                 normalization=None)
Initialization; see `InvertedPendulum`.
Initialization; see `InvertedPendulum`.
Initialization ; see InvertedPendulum .
def __init__(self, mass, length, friction=0, dt=1 / 80,
                 normalization=None):
        """Initialization; see `InvertedPendulum`."""
        super(InvertedPendulum, self).__init__()
        self.mass = mass
        self.length = length
        self.gravity = 9.81
        self.friction = friction
        self.dt = dt

        self.normalization = normalization
        if normalization is not None:
            self.normalization = [np.array(norm, dtype=config.np_dtype)
                                  for norm in normalization]
            self.inv_norm = [norm ** -1 for norm in self.normalization]
def __init__ ( self , mass , length , friction = 0 , dt = 1 / 80 , normalization = None ) : super ( InvertedPendulum , self ) . __init__ ( ) self . mass = mass self . length = length self . gravity = 9.81 self . friction = friction self . dt = dt self . normalization = normalization if normalization is not None : self . normalization = [ np . array ( norm , dtype = config . np_dtype ) for norm in normalization ] self . inv_norm = [ norm ** - 1 for norm in self . normalization ]