Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Where is the code for DistanceMatrix?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109240] Re: Where is the code for DistanceMatrix?
  • From: Ray Koopman <koopman at sfu.ca>
  • Date: Sun, 18 Apr 2010 05:59:47 -0400 (EDT)
  • References: <hq9c1b$qea$1@smc.vnet.net>

On Apr 16, 2:52 am, "Ingolf Dahl" <ingolf.d... at telia.com> wrote:
> DistanceMatrix is defined in the HierarchicalClustering package and in the
> HierarchicalClustering` context. But if I open  in the
> HierarchicalClustering .m file D:\Program Files\Wolfram
> Research\Mathematica\7.0\AddOns\Packages\HierarchicalClustering directory, I
> find
>
> If[ Not@ValueQ[DistanceMatrix::usage],
>  DistanceMatrix::usage = "DistanceMatrix[list] computes the \
>   symmetric matrix of distance or dissimilarity coefficients between \
> the elements of list."]
>
> If I do
>
> Needs["HierarchicalClustering`"]
> ?DistanceMatrix
>
> then I get
>
> DistanceMatrix [ list ] gives a matrix of distances or dissimilarities
> between the elements of  list . >>
>
> which is not what the usage message says
>
> Then I try to find the code for the function DistanceMatrix, but I do not
> find it in this file. Where is it? Is it hidden in the Kernel?
> If it is in the Kernel, why is it not available without loading
> HierarchicalClustering?
>
> Ingolf Dahl
> Sweden
> e-mail: ingolf.d... at telia.com

It's in the kernel. See
http://groups.google.ca/group/comp.soft-sys.math.mathematica/msg/67a747139ac59370


  • Prev by Date: Re: Generalization of Variables ?
  • Next by Date: Re: sqlite database connection
  • Previous by thread: Re: Where is the code for DistanceMatrix?
  • Next by thread: Re: Where is the code for DistanceMatrix?