feat(chalice): fixed funnels
This commit is contained in:
parent
557024bc80
commit
f042f85d75
3 changed files with 3 additions and 3 deletions
|
|
@ -258,7 +258,7 @@ def pearson_corr(x: list, y: list):
|
||||||
return None, None, False
|
return None, None, False
|
||||||
|
|
||||||
if n == 2:
|
if n == 2:
|
||||||
return math.copysign(1, x[1] - x[0]) * math.copysign(1, y[1] - y[0]), 1.0
|
return math.copysign(1, x[1] - x[0]) * math.copysign(1, y[1] - y[0]), 1.0, True
|
||||||
|
|
||||||
xmean = sum(x) / len(x)
|
xmean = sum(x) / len(x)
|
||||||
ymean = sum(y) / len(y)
|
ymean = sum(y) / len(y)
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,7 @@ def pearson_corr(x: list, y: list):
|
||||||
return None, None, False
|
return None, None, False
|
||||||
|
|
||||||
if n == 2:
|
if n == 2:
|
||||||
return math.copysign(1, x[1] - x[0]) * math.copysign(1, y[1] - y[0]), 1.0
|
return math.copysign(1, x[1] - x[0]) * math.copysign(1, y[1] - y[0]), 1.0, True
|
||||||
|
|
||||||
xmean = sum(x) / len(x)
|
xmean = sum(x) / len(x)
|
||||||
ymean = sum(y) / len(y)
|
ymean = sum(y) / len(y)
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,7 @@ def pearson_corr(x: list, y: list):
|
||||||
return None, None, False
|
return None, None, False
|
||||||
|
|
||||||
if n == 2:
|
if n == 2:
|
||||||
return math.copysign(1, x[1] - x[0]) * math.copysign(1, y[1] - y[0]), 1.0
|
return math.copysign(1, x[1] - x[0]) * math.copysign(1, y[1] - y[0]), 1.0, True
|
||||||
|
|
||||||
xmean = sum(x) / len(x)
|
xmean = sum(x) / len(x)
|
||||||
ymean = sum(y) / len(y)
|
ymean = sum(y) / len(y)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue