Esempio n. 1
0
 def __init__(self, classes=[0,1], nc=1, theta=1.0):
     '''
     Creates an FC beamformer that will generate nc components. A
     regularization parameter theta can be supplied (0..1) to prevent
     overfitting.
     '''
     assert 0 < theta <= 1, 'Regularization parameter should be in range (0; 1]'
     SpatialFilter.__init__(self, None)
     self.classes = classes
     self.nc = nc
     self.theta = theta
Esempio n. 2
0
 def __init__(self, signal=0, noise=1, nc=1, theta=1.0):
     '''
     Creates an max-SNR beamformer that will generate nc components. A
     regularization parameter theta can be supplied (0..1) to prevent
     overfitting.
     '''
     assert 0 < theta <= 1, 'Regularization parameter should be in range (0; 1]'
     SpatialFilter.__init__(self, None)
     self.signal = signal
     self.noise = noise
     self.nc = nc
     self.theta = theta
Esempio n. 3
0
 def __init__(self, signal=0, noise=1, nc=2, theta=1.0):
     '''
     Creates an CFMS beamformer that will generate nc components, where half
     of the components are supplied by an FC beamformer and half are supplied
     by an max-SNR beamformer. NC should therefore always be an even number.
     A regularization parameter theta can be supplied (0..1) to prevent
     overfitting. 
     '''
     assert nc % 2 == 0, 'Number of components should be even'
     assert 0 < theta <= 1, 'Regularization parameter should be in range (0; 1]'
     SpatialFilter.__init__(self, None)
     self.signal=signal
     self.noise=noise
     self.nc = nc
     self.theta = theta