コード例 #1
0
ファイル: jde_multi_subjects.py プロジェクト: Solvi/pyhrf
    def __init__(self, duration, dt, zero_constraint):
        """
        Create a variable object handling the sampling of variable 'x'.
        The sampling init value is set to 0.
        """

        GSVariable.__init__(self, 'hrf_subjects', initialization='custom')

        self.duration = duration
        self.dt = dt
        self.zc = zero_constraint
        self.nb_coeffs = self.duration / self.dt
コード例 #2
0
ファイル: gibbs_inference_basic.py プロジェクト: Solvi/pyhrf
 def __init__(self):
     """
     Create a variable object handling the sampling of variable 'x'.
     The sampling init value is set to 0.
     """
     GSVariable.__init__(self, 'x', initialization=0.)
コード例 #3
0
ファイル: test_sandbox.py プロジェクト: pmesejo/pyhrf
 def __init__(self, init):
     GSVariable.__init__(self, 'x', initialization=init)
コード例 #4
0
ファイル: test_sandbox.py プロジェクト: pmesejo/pyhrf
 def __init__(self):
     GSVariable.__init__(self, 'x', initialization=np.zeros(2))