Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self):
self.gauss = Gaussian1D(0, 0.5, label='Gaussian')
self.skew = Mixture1D([0, 1], [1, 0.4], [0.6, 0.4], label='skew')
self.tailed = Mixture1D([0, 0], [1, 3], [0.8, 0.2], label='tailed')
self.flat = Gaussian1D(0, 3, xmin=-1, xmax=2, label='flat')
self.broad = Mixture1D([0, 0.3], [1, 2], [0.6, 0.4], label='broad')
self.flat_top = Mixture1D([0, 1.5, 3], [1, 1, 1], [0.4, 0.2, 0.4], label='flat top')
self.bimodal = []
self.bimodal.append(Mixture1D([0, 2], [0.5, 0.5], [0.6, 0.4], label='bimodal 1'))
self.bimodal.append(Mixture1D([0, 2], [0.2, 0.5], [0.5, 0.5], label='bimodal 2'))
self.trimodal = []
self.trimodal.append(Mixture1D([0, 2, 5], [0.2, 0.7, 0.4], label='trimodal'))
self.cut_gaussians = self.cutGaussians()
self.shape_set = [self.gauss, self.skew, self.tailed, self.broad, self.flat, self.flat_top]
self.all = self.shape_set + self.bimodal + self.trimodal + self.cut_gaussians
def __init__(self):
self.gauss = Gaussian1D(0, 0.5, label='Gaussian')
self.skew = Mixture1D([0, 1], [1, 0.4], [0.6, 0.4], label='skew')
self.tailed = Mixture1D([0, 0], [1, 3], [0.8, 0.2], label='tailed')
self.flat = Gaussian1D(0, 3, xmin=-1, xmax=2, label='flat')
self.broad = Mixture1D([0, 0.3], [1, 2], [0.6, 0.4], label='broad')
self.flat_top = Mixture1D([0, 1.5, 3], [1, 1, 1], [0.4, 0.2, 0.4], label='flat top')
self.bimodal = []
self.bimodal.append(Mixture1D([0, 2], [0.5, 0.5], [0.6, 0.4], label='bimodal 1'))
self.bimodal.append(Mixture1D([0, 2], [0.2, 0.5], [0.5, 0.5], label='bimodal 2'))
self.trimodal = []
self.trimodal.append(Mixture1D([0, 2, 5], [0.2, 0.7, 0.4], label='trimodal'))
self.cut_gaussians = self.cutGaussians()
self.shape_set = [self.gauss, self.skew, self.tailed, self.broad, self.flat, self.flat_top]
self.all = self.shape_set + self.bimodal + self.trimodal + self.cut_gaussians
def __init__(self):
self.gauss = Gaussian1D(0, 0.5, label='Gaussian')
self.skew = Mixture1D([0, 1], [1, 0.4], [0.6, 0.4], label='skew')
self.tailed = Mixture1D([0, 0], [1, 3], [0.8, 0.2], label='tailed')
self.flat = Gaussian1D(0, 3, xmin=-1, xmax=2, label='flat')
self.broad = Mixture1D([0, 0.3], [1, 2], [0.6, 0.4], label='broad')
self.flat_top = Mixture1D([0, 1.5, 3], [1, 1, 1], [0.4, 0.2, 0.4], label='flat top')
self.bimodal = []
self.bimodal.append(Mixture1D([0, 2], [0.5, 0.5], [0.6, 0.4], label='bimodal 1'))
self.bimodal.append(Mixture1D([0, 2], [0.2, 0.5], [0.5, 0.5], label='bimodal 2'))
self.trimodal = []
self.trimodal.append(Mixture1D([0, 2, 5], [0.2, 0.7, 0.4], label='trimodal'))
self.cut_gaussians = self.cutGaussians()
self.shape_set = [self.gauss, self.skew, self.tailed, self.broad, self.flat, self.flat_top]
self.all = self.shape_set + self.bimodal + self.trimodal + self.cut_gaussians
def __init__(self):
self.gauss = Gaussian1D(0, 0.5, label='Gaussian')
self.skew = Mixture1D([0, 1], [1, 0.4], [0.6, 0.4], label='skew')
self.tailed = Mixture1D([0, 0], [1, 3], [0.8, 0.2], label='tailed')
self.flat = Gaussian1D(0, 3, xmin=-1, xmax=2, label='flat')
self.broad = Mixture1D([0, 0.3], [1, 2], [0.6, 0.4], label='broad')
self.flat_top = Mixture1D([0, 1.5, 3], [1, 1, 1], [0.4, 0.2, 0.4], label='flat top')
self.bimodal = []
self.bimodal.append(Mixture1D([0, 2], [0.5, 0.5], [0.6, 0.4], label='bimodal 1'))
self.bimodal.append(Mixture1D([0, 2], [0.2, 0.5], [0.5, 0.5], label='bimodal 2'))
self.trimodal = []
self.trimodal.append(Mixture1D([0, 2, 5], [0.2, 0.7, 0.4], label='trimodal'))
self.cut_gaussians = self.cutGaussians()
self.shape_set = [self.gauss, self.skew, self.tailed, self.broad, self.flat, self.flat_top]
self.all = self.shape_set + self.bimodal + self.trimodal + self.cut_gaussians
def __init__(self):
self.gauss = Gaussian1D(0, 0.5, label='Gaussian')
self.skew = Mixture1D([0, 1], [1, 0.4], [0.6, 0.4], label='skew')
self.tailed = Mixture1D([0, 0], [1, 3], [0.8, 0.2], label='tailed')
self.flat = Gaussian1D(0, 3, xmin=-1, xmax=2, label='flat')
self.broad = Mixture1D([0, 0.3], [1, 2], [0.6, 0.4], label='broad')
self.flat_top = Mixture1D([0, 1.5, 3], [1, 1, 1], [0.4, 0.2, 0.4], label='flat top')
self.bimodal = []
self.bimodal.append(Mixture1D([0, 2], [0.5, 0.5], [0.6, 0.4], label='bimodal 1'))
self.bimodal.append(Mixture1D([0, 2], [0.2, 0.5], [0.5, 0.5], label='bimodal 2'))
self.trimodal = []
self.trimodal.append(Mixture1D([0, 2, 5], [0.2, 0.7, 0.4], label='trimodal'))
self.cut_gaussians = self.cutGaussians()
self.shape_set = [self.gauss, self.skew, self.tailed, self.broad, self.flat, self.flat_top]
self.all = self.shape_set + self.bimodal + self.trimodal + self.cut_gaussians
def __init__(self):
self.gauss = Gaussian1D(0, 0.5, label='Gaussian')
self.skew = Mixture1D([0, 1], [1, 0.4], [0.6, 0.4], label='skew')
self.tailed = Mixture1D([0, 0], [1, 3], [0.8, 0.2], label='tailed')
self.flat = Gaussian1D(0, 3, xmin=-1, xmax=2, label='flat')
self.broad = Mixture1D([0, 0.3], [1, 2], [0.6, 0.4], label='broad')
self.flat_top = Mixture1D([0, 1.5, 3], [1, 1, 1], [0.4, 0.2, 0.4], label='flat top')
self.bimodal = []
self.bimodal.append(Mixture1D([0, 2], [0.5, 0.5], [0.6, 0.4], label='bimodal 1'))
self.bimodal.append(Mixture1D([0, 2], [0.2, 0.5], [0.5, 0.5], label='bimodal 2'))
self.trimodal = []
self.trimodal.append(Mixture1D([0, 2, 5], [0.2, 0.7, 0.4], label='trimodal'))
self.cut_gaussians = self.cutGaussians()
self.shape_set = [self.gauss, self.skew, self.tailed, self.broad, self.flat, self.flat_top]
self.all = self.shape_set + self.bimodal + self.trimodal + self.cut_gaussians
def __init__(self):
self.gauss = Gaussian1D(0, 0.5, label='Gaussian')
self.skew = Mixture1D([0, 1], [1, 0.4], [0.6, 0.4], label='skew')
self.tailed = Mixture1D([0, 0], [1, 3], [0.8, 0.2], label='tailed')
self.flat = Gaussian1D(0, 3, xmin=-1, xmax=2, label='flat')
self.broad = Mixture1D([0, 0.3], [1, 2], [0.6, 0.4], label='broad')
self.flat_top = Mixture1D([0, 1.5, 3], [1, 1, 1], [0.4, 0.2, 0.4], label='flat top')
self.bimodal = []
self.bimodal.append(Mixture1D([0, 2], [0.5, 0.5], [0.6, 0.4], label='bimodal 1'))
self.bimodal.append(Mixture1D([0, 2], [0.2, 0.5], [0.5, 0.5], label='bimodal 2'))
self.trimodal = []
self.trimodal.append(Mixture1D([0, 2, 5], [0.2, 0.7, 0.4], label='trimodal'))
self.cut_gaussians = self.cutGaussians()
self.shape_set = [self.gauss, self.skew, self.tailed, self.broad, self.flat, self.flat_top]
self.all = self.shape_set + self.bimodal + self.trimodal + self.cut_gaussians
def __init__(self):
self.gauss = Gaussian1D(0, 0.5, label='Gaussian')
self.skew = Mixture1D([0, 1], [1, 0.4], [0.6, 0.4], label='skew')
self.tailed = Mixture1D([0, 0], [1, 3], [0.8, 0.2], label='tailed')
self.flat = Gaussian1D(0, 3, xmin=-1, xmax=2, label='flat')
self.broad = Mixture1D([0, 0.3], [1, 2], [0.6, 0.4], label='broad')
self.flat_top = Mixture1D([0, 1.5, 3], [1, 1, 1], [0.4, 0.2, 0.4], label='flat top')
self.bimodal = []
self.bimodal.append(Mixture1D([0, 2], [0.5, 0.5], [0.6, 0.4], label='bimodal 1'))
self.bimodal.append(Mixture1D([0, 2], [0.2, 0.5], [0.5, 0.5], label='bimodal 2'))
self.trimodal = []
self.trimodal.append(Mixture1D([0, 2, 5], [0.2, 0.7, 0.4], label='trimodal'))
self.cut_gaussians = self.cutGaussians()
self.shape_set = [self.gauss, self.skew, self.tailed, self.broad, self.flat, self.flat_top]
self.all = self.shape_set + self.bimodal + self.trimodal + self.cut_gaussians
def __init__(self):
self.gauss = Gaussian1D(0, 0.5, label='Gaussian')
self.skew = Mixture1D([0, 1], [1, 0.4], [0.6, 0.4], label='skew')
self.tailed = Mixture1D([0, 0], [1, 3], [0.8, 0.2], label='tailed')
self.flat = Gaussian1D(0, 3, xmin=-1, xmax=2, label='flat')
self.broad = Mixture1D([0, 0.3], [1, 2], [0.6, 0.4], label='broad')
self.flat_top = Mixture1D([0, 1.5, 3], [1, 1, 1], [0.4, 0.2, 0.4], label='flat top')
self.bimodal = []
self.bimodal.append(Mixture1D([0, 2], [0.5, 0.5], [0.6, 0.4], label='bimodal 1'))
self.bimodal.append(Mixture1D([0, 2], [0.2, 0.5], [0.5, 0.5], label='bimodal 2'))
self.trimodal = []
self.trimodal.append(Mixture1D([0, 2, 5], [0.2, 0.7, 0.4], label='trimodal'))
self.cut_gaussians = self.cutGaussians()
self.shape_set = [self.gauss, self.skew, self.tailed, self.broad, self.flat, self.flat_top]
self.all = self.shape_set + self.bimodal + self.trimodal + self.cut_gaussians
def __init__(self):
self.gauss = Gaussian1D(0, 0.5, label='Gaussian')
self.skew = Mixture1D([0, 1], [1, 0.4], [0.6, 0.4], label='skew')
self.tailed = Mixture1D([0, 0], [1, 3], [0.8, 0.2], label='tailed')
self.flat = Gaussian1D(0, 3, xmin=-1, xmax=2, label='flat')
self.broad = Mixture1D([0, 0.3], [1, 2], [0.6, 0.4], label='broad')
self.flat_top = Mixture1D([0, 1.5, 3], [1, 1, 1], [0.4, 0.2, 0.4], label='flat top')
self.bimodal = []
self.bimodal.append(Mixture1D([0, 2], [0.5, 0.5], [0.6, 0.4], label='bimodal 1'))
self.bimodal.append(Mixture1D([0, 2], [0.2, 0.5], [0.5, 0.5], label='bimodal 2'))
self.trimodal = []
self.trimodal.append(Mixture1D([0, 2, 5], [0.2, 0.7, 0.4], label='trimodal'))
self.cut_gaussians = self.cutGaussians()
self.shape_set = [self.gauss, self.skew, self.tailed, self.broad, self.flat, self.flat_top]
self.all = self.shape_set + self.bimodal + self.trimodal + self.cut_gaussians