def __init__(self, traj, theta):
   HardFilter.__init__(self)
   self.traj = traj
   self.theta = theta
   if not self.traj.L:
     raise Exception("Empty trajectory")
   if self.theta.shape[0] != self.traj.features_np[0].shape[1]:
     raise Exception("Shape of theta is %s while shape of features is %s" % \
                     (self.theta.shape, self.traj.features_np[0].shape[1]))
 def __init__(self, traj, theta):
     HardFilter.__init__(self)
     self.traj = traj
     self.theta = theta
     if not self.traj.L:
         raise Exception("Empty trajectory")
     if self.theta.shape[0] != self.traj.features_np[0].shape[1]:
         raise Exception("Shape of theta is %s while shape of features is %s" % \
                         (self.theta.shape, self.traj.features_np[0].shape[1]))
 def __init__(self):
   HardFilter.__init__(self)