Skip to content

Instantly share code, notes, and snippets.

@alfard
Last active December 16, 2015 01:29
Show Gist options
  • Select an option

  • Save alfard/5355730 to your computer and use it in GitHub Desktop.

Select an option

Save alfard/5355730 to your computer and use it in GitHub Desktop.
Matlab test matrix
x=[];
t_start = cputime;
for (i= 1 : 156849)
ensemblefity2=expm1( ( y2(:,1)*e4(i,1) + y2(:,2)*e4(i,2) + y2(:,3)*e4(i,3) + y2(:,4)*e4(i,4) )/100);
ensemblefity3=expm1( ( y3(:,1)*e4(i,1) + y3(:,2)*e4(i,2) + y3(:,3)*e4(i,3) + y3(:,4)*e4(i,4) )/100);
T=[y2 ensemblefity2 ];
T3=[y3 ensemblefity3 ];
Result(i,:) = sqrt( (1/size(T,1)) * sum(( log( T(:,6) +1 ) - log( T(:,5)+1 ) ).^2)) ;
Result3(i,:) = sqrt( (1/size(T3,1)) * sum(( log( T3(:,6) +1 ) - log( T3(:,5)+1 ) ).^2)) ;
fprintf('%d\n ', i);
end;
t_used = cputime - t_start;
Z=[e4 Result Result3];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment