Skip to content

Commit

Permalink
Updated function usage for new scipy
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Apr 8, 2019
1 parent 8d99e15 commit 12ae9f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions behaviopy/analysis.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import pandas as pd
from scipy import stats
from scipy import special
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
import matplotlib.cm as cm
Expand Down Expand Up @@ -40,7 +40,7 @@ def p_from_r(r,n):
prob = 0.0
else:
t_squared = r*r * (df / ((1.0 - r) * (1.0 + r)))
prob = stats.betai(0.5*df, 0.5, df / (df + t_squared))
prob = special.betainc(0.5*df, 0.5, df / (df + t_squared))
return prob

def correlation_matrix(df_x_path,
Expand Down

0 comments on commit 12ae9f8

Please sign in to comment.