def Student_t(df, loc=0, scale=1, nc=0): """ (Non-central) Student-t distribution df : float, Dist Degrees of freedom loc : float, Dist Location parameter scale : float, Dist Scale parameter nc : flat, Dist Non-centrality parameter """ dist = co.student_t(df)*scale + loc dist.addattr(str="Student_t(%s,%s,%s)" % (df, loc, scale)) return dist
def Student_t(df, loc=0, scale=1, nc=0): """ (Non-central) Student-t distribution df : float, Dist Degrees of freedom loc : float, Dist Location parameter scale : float, Dist Scale parameter nc : flat, Dist Non-centrality parameter """ dist = co.student_t(df) * scale + loc dist.addattr(str="Student_t(%s,%s,%s)" % (df, loc, scale)) return dist
def __init__(self, a, R): self.MV = mvstudentt(a, np.zeros(len(R)), R) self.UV = student_t(a) Dist.__init__(self, _length=len(R))