Fixed #1: named parameters fixed parameter misorder
This commit is contained in:
@@ -107,11 +107,13 @@ df = samplesize - 1
|
|||||||
|
|
||||||
prob = 0
|
prob = 0
|
||||||
if args.upperbound and args.lowerbound:
|
if args.upperbound and args.lowerbound:
|
||||||
prob = t.cdf(df,args.upperbound, mean, stddev) - t.cdf(df,args.lowerbound, mean, stddev)
|
prob_upper = t.cdf(df=df,x=args.upperbound, loc=mean, scale=stddev)
|
||||||
|
prob_lower = t.cdf(df=df,x=args.lowerbound, loc=mean, scale=stddev)
|
||||||
|
prob = prob_upper - prob_lower
|
||||||
elif args.upperbound:
|
elif args.upperbound:
|
||||||
prob = t.cdf(df,args.upperbound, mean, stddev)
|
prob = t.cdf(df=df,x=args.upperbound, loc=mean, scale=stddev)
|
||||||
elif args.lowerbound:
|
elif args.lowerbound:
|
||||||
prob = 1 - t.cdf(df,args.lowerbound, mean, stddev)
|
prob = 1 - t.cdf(df=df,x=args.lowerbound, loc=mean, scale=stddev)
|
||||||
else:
|
else:
|
||||||
prob = 1# no bounds set!
|
prob = 1# no bounds set!
|
||||||
#print("probability: %f", prob)
|
#print("probability: %f", prob)
|
||||||
|
|||||||
2
tests.sh
2
tests.sh
@@ -3,4 +3,4 @@
|
|||||||
echo "Loading data from file"
|
echo "Loading data from file"
|
||||||
./infocalc.py --lowerbound 0.9 --upperbound 1.1 --graphinfo DATA testdata.csv data1
|
./infocalc.py --lowerbound 0.9 --upperbound 1.1 --graphinfo DATA testdata.csv data1
|
||||||
echo "Creating simulated curve from parameters"
|
echo "Creating simulated curve from parameters"
|
||||||
./infocalc.py --lowerbound 0.9 --upperbound 1.1 SIM 8 1.0 0.5
|
./infocalc.py --lowerbound 0.1 --upperbound 1.5 SIM 8 1.0 0.5
|
||||||
|
|||||||
Reference in New Issue
Block a user