Beispiel #1
0
def calcFDistribution(v1, v2, x):
    y = fdtr(v1, v2, x)
    N = y.size
    z = np.zeros(N)
    z[1:] = y[:-1]
    y -= z
    return y
Beispiel #2
0
    def cdf(self, x):
        """
        Computes the cumulative distribution function of the
        distribution at the point(s) x. The cdf is defined as follows:
            F(x|d1, d2) = I_{(d1 * x) / (d1 * x + d2)} (d1 / 2, d2 / 2)

        where I_stuff is the regularized incomplete beta function.

        Parameters
        ----------
        x: array, dtype=float, shape=(m x n)
            The value(s) at which the user would like the cdf evaluated.
            If an array is passed in, the cdf is evaluated at every point
            in the array and an array of the same size is returned.

        Returns
        -------
        cdf: array, dtype=float, shape=(m x n)
            The cdf at each point in x.
        """
        cdf = fdtr(self.d1, self.d2, x)

        return cdf
Beispiel #3
0
    def cdf(self, x):
        """
        Computes the cumulative distribution function of the
        distribution at the point(s) x. The cdf is defined as follows:
            F(x|d1, d2) = I_{(d1 * x) / (d1 * x + d2)} (d1 / 2, d2 / 2)

        where I_stuff is the regularized incomplete beta function.

        Parameters
        ----------
        x: array, dtype=float, shape=(m x n)
            The value(s) at which the user would like the cdf evaluated.
            If an array is passed in, the cdf is evaluated at every point
            in the array and an array of the same size is returned.

        Returns
        -------
        cdf: array, dtype=float, shape=(m x n)
            The cdf at each point in x.
        """
        cdf = fdtr(self.d1, self.d2, x)

        return cdf
Beispiel #4
0
 def fn(nu2):
     x = k2**2 * nu2 / (nu1 * (nu2 + 1))
     # return pf(x,nu1,nu2) - p
     return special.fdtr(nu1, nu2, x) - p
Beispiel #5
0
def _cdff(self, x, dfn, dfd):
    return special.fdtr(dfn, dfd, x)
Beispiel #6
0
def _cdff(x, dfn, dfd):
    return special.fdtr(dfn, dfd, x)  # pylint: disable=no-member
Beispiel #7
0
def _cdff(self, x, dfn, dfd):
    return special.fdtr(dfn, dfd, x)