Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
std_p=0.5
mean_p=0.5
mean_n=2/3
value=1
y_correct=0.4714
assert(abs(recursive_std(std_p,mean_p,mean_n,value)-y_correct)<1e-4)
std_p =
0.5000
mean_p =
0.5000
mean_n =
0.6667
value =
1
y_correct =
0.4714
ans =
0.4714
|
2 | Pass |
%%
std_p=.5
mean_p=1.5
mean_n=2
value=3
y_correct=0.8165
assert(abs(recursive_std(std_p,mean_p,mean_n,value)-y_correct)<1e-4)
std_p =
0.5000
mean_p =
1.5000
mean_n =
2
value =
3
y_correct =
0.8165
ans =
0.8165
|
3 | Pass |
%%
std_p=5
mean_p=4
mean_n=7.6667
value=15
y_correct=6.5997
assert(abs(recursive_std(std_p,mean_p,mean_n,value)-y_correct)<1e-4)
std_p =
5
mean_p =
4
mean_n =
7.6667
value =
15
y_correct =
6.5997
ans =
6.5997
|
Getting the indices from a vector
3206 Solvers
669 Solvers
Convert Two Character String into a Binary Vector
102 Solvers
462 Solvers
484 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!