Esempio n. 1
0
 def __init__(self, mesh, mean=0.0, name = '', hasOld = 0):
     r"""
     :Parameters:
         - `mesh`: The mesh on which to define the noise.
         - `mean`: The mean of the distribution :math:`\mu`.
     """
     NoiseVariable.__init__(self, mesh = mesh, name = name, hasOld = hasOld)
     self.mean = self._requires(mean)
 def __init__(self, mesh, mean=0.0, name = '', hasOld = 0):
     r"""
     :Parameters:
         - `mesh`: The mesh on which to define the noise.
         - `mean`: The mean of the distribution :math:`\mu`.
     """
     NoiseVariable.__init__(self, mesh = mesh, name = name, hasOld = hasOld)
     self.mean = self._requires(mean)
Esempio n. 3
0
 def __init__(self, mesh, name='', minimum=0., maximum=1., hasOld=0):
     """
     :Parameters:
         - `mesh`: The mesh on which to define the noise.
         - `minimum`: The minimum (not-inclusive) value of the distribution.
         - `maximum`: The maximum (not-inclusive) value of the distribution.
     """
     self.minimum = minimum
     self.maximum = maximum
     NoiseVariable.__init__(self, mesh=mesh, name=name, hasOld=hasOld)
 def __init__(self, mesh, name = '', mean = 0., variance = 1., hasOld = 0):
     """
     :Parameters:
         - `mesh`: The mesh on which to define the noise.
         - `mean`: The mean of the noise distrubution, :math:`\mu`.
         - `variance`: The variance of the noise distribution, :math:`\sigma^2`.
     """
     self.mean = mean
     self.variance = variance
     NoiseVariable.__init__(self, mesh = mesh, name = name, hasOld = hasOld)
 def __init__(self, mesh, name = '', minimum = 0., maximum = 1., hasOld = 0):
     """
     :Parameters:
         - `mesh`: The mesh on which to define the noise.
         - `minimum`: The minimum (not-inclusive) value of the distribution.
         - `maximum`: The maximum (not-inclusive) value of the distribution.
     """
     self.minimum = minimum
     self.maximum = maximum
     NoiseVariable.__init__(self, mesh = mesh, name = name, hasOld = hasOld)
Esempio n. 6
0
 def __init__(self, mesh, name='', mean=0., variance=1., hasOld=0):
     """
     :Parameters:
         - `mesh`: The mesh on which to define the noise.
         - `mean`: The mean of the noise distribution, :math:`\mu`.
         - `variance`: The variance of the noise distribution, :math:`\sigma^2`.
     """
     self.mean = mean
     self.variance = variance
     NoiseVariable.__init__(self, mesh=mesh, name=name, hasOld=hasOld)
Esempio n. 7
0
 def __init__(self, mesh, shape, rate, name = '', hasOld = 0):
     r"""
     :Parameters:
         - `mesh`: The mesh on which to define the noise.
         - `shape`: The shape parameter, :math:`\alpha`.
         - `rate`: The rate or inverse scale parameter, :math:`\beta`.
              
     """
     NoiseVariable.__init__(self, mesh = mesh, name = name, hasOld = hasOld)
     self.shapeParam = self._requires(shape)
     self.rate = self._requires(rate)
Esempio n. 8
0
    def __init__(self, mesh, shape, rate, name = '', hasOld = 0):
        r"""
        :Parameters:
            - `mesh`: The mesh on which to define the noise.
            - `shape`: The shape parameter, :math:`\alpha`.
            - `rate`: The rate or inverse scale parameter, :math:`\beta`.

        """
        NoiseVariable.__init__(self, mesh = mesh, name = name, hasOld = hasOld)
        self.shapeParam = self._requires(shape)
        self.rate = self._requires(rate)
Esempio n. 9
0
 def __init__(self, mesh, mean=0.0, name='', hasOld=0):
     r"""
     Parameters
     ----------
     mesh : ~fipy.meshes.mesh.Mesh
         The mesh on which to define the noise.
     mean : float
         The mean of the distribution :math:`\mu`.
     """
     NoiseVariable.__init__(self, mesh=mesh, name=name, hasOld=hasOld)
     self.mean = self._requires(mean)
Esempio n. 10
0
    def __init__(self, mesh, alpha, beta, name='', hasOld=0):
        r"""
        :Parameters:
            - `mesh`: The mesh on which to define the noise.
            - `alpha`: The parameter :math:`\alpha`.
            - `beta`: The parameter :math:`\beta`.

        """
        NoiseVariable.__init__(self, mesh=mesh, name=name, hasOld=hasOld)
        self.alpha = self._requires(alpha)
        self.beta = self._requires(beta)
Esempio n. 11
0
 def __init__(self, mesh, alpha, beta, name = '', hasOld = 0):
     r"""
     :Parameters:
         - `mesh`: The mesh on which to define the noise.
         - `alpha`: The parameter :math:`\alpha`.
         - `beta`: The parameter :math:`\beta`.
              
     """
     NoiseVariable.__init__(self, mesh = mesh, name = name, hasOld = hasOld)
     self.alpha = self._requires(alpha)
     self.beta = self._requires(beta)
Esempio n. 12
0
 def __init__(self, mesh, alpha, beta, name = '', hasOld = 0):
     r"""
     Parameters
     ----------
     mesh : ~fipy.meshes.mesh.Mesh
         The mesh on which to define the noise.
     alpha : float
         The parameter :math:`\alpha`.
     beta : float
         The parameter :math:`\beta`.
     """
     NoiseVariable.__init__(self, mesh = mesh, name = name, hasOld = hasOld)
     self.alpha = self._requires(alpha)
     self.beta = self._requires(beta)
Esempio n. 13
0
 def __init__(self, mesh, name='', mean=0., variance=1., hasOld=0):
     """
     Parameters
     ----------
     mesh : ~fipy.meshes.mesh.Mesh
         The mesh on which to define the noise.
     mean : float
         The mean of the noise distribution, :math:`\mu`.
     variance : float
         The variance of the noise distribution, :math:`\sigma^2`.
     """
     self.mean = mean
     self.variance = variance
     NoiseVariable.__init__(self, mesh=mesh, name=name, hasOld=hasOld)
Esempio n. 14
0
 def __init__(self, mesh, name='', minimum=0., maximum=1., hasOld=0):
     """
     Parameters
     ----------
     mesh : ~fipy.meshes.mesh.Mesh
         The mesh on which to define the noise.
     minimum : float
         The minimum (not-inclusive) value of the distribution.
     maximum : float
         The maximum (not-inclusive) value of the distribution.
     """
     self.minimum = minimum
     self.maximum = maximum
     NoiseVariable.__init__(self, mesh=mesh, name=name, hasOld=hasOld)
Esempio n. 15
0
    def __init__(self, mesh, shape, rate, name='', hasOld=0):
        r"""
        Parameters
        ----------
        mesh : ~fipy.meshes.mesh.Mesh
            The mesh on which to define the noise.
        shape : float
            The shape parameter, :math:`\alpha`.
        rate : float
            The rate or inverse scale parameter, :math:`\beta`.

        """
        NoiseVariable.__init__(self, mesh=mesh, name=name, hasOld=hasOld)
        self.shapeParam = self._requires(shape)
        self.rate = self._requires(rate)