There are optimized distance calculations for a number of different metrics 
in Distance.jl: https://github.com/JuliaStats/Distance.jl

On Sunday, May 25, 2014 1:42:15 AM UTC-7, paul analyst wrote:
>
> How quickly calculate distances arrays etc.
>
> This is an array of quotients, on the diagonal must be zero. 
> Are there any features that quickly count this type of arrays?
>
> Data in F...
>
> k=size(F,2);
> O=zeros(k,k);
> for o=0:k-2;
> for i=1:k-1-o j=i+1+o;
> O[i,j]=sum(F[:,i])/sum(F[:,j]);
> O[j,i]=1/O[i,j];
> end;
> end;
>
> Paul
>

Reply via email to