[R] speeding up "sum of squared differences" calculation

Kenneth Knoblauch ken.knoblauch at inserm.fr
Tue Oct 22 15:12:50 CEST 2013


Actually, you don't need to use c() in the dist example, either, which 
should shave off a few microseconds for a function call.  It was late 
last night ...

Ken

On 22-10-2013 15:08, S Ellison wrote:
>> Conclusion: hard to beat outer() for this purpose in R
> ... unless you use Ken Knoblauch's suggestion of dist() or Rccp.
> 
> Nice indeed.
> 
> 
> S Ellison
> 
> 
> *******************************************************************
> This email and any attachments are confidential. Any use, copying or
> disclosure other than by the intended recipient is unauthorised. If
> you have received this message in error, please notify the sender
> immediately via +44(0)20 8943 7000 or notify postmaster at lgcgroup.com
> and delete this message and any copies from your computer and network.
> LGC Limited. Registered in England 2991879.
> Registered office: Queens Road, Teddington, Middlesex, TW11 0LY, UK

-- 
Kenneth Knoblauch
Inserm U846
Stem-cell and Brain Research Institute
Department of Integrative Neurosciences
18 avenue du Doyen Lépine
69500 Bron
France
tel: +33 (0)4 72 91 34 77
fax: +33 (0)4 72 91 34 61
portable: +33 (0)6 84 10 64 10
http://www.sbri.fr/members/kenneth-knoblauch.html



More information about the R-help mailing list