Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Re: Re: distance function

  • To: mathgroup at
  • Subject: [mg70168] Re: [mg70133] Re: [mg70115] Re: distance function
  • From: "Chris Chiasson" <chris at>
  • Date: Fri, 6 Oct 2006 01:58:37 -0400 (EDT)
  • References: <> <efq680$2gf$> <> <>

Was it ever not in the kernel, say in an older version?
If it wasn't in the kernel and it was in a human readable package, a
customer with a backlog of older versions may be able to tell us what
the code was.

On 10/5/06, Carl Woll <carlw at> wrote:
> Ray Koopman wrote:
> >Carl Woll wrote:
> >
> >
> >>[...]
> >>The package Statistics`ClusterAnalysis` has a very quick
> >>DistanceMatrix function:
> >>[...]
> >>
> >>
> >
> >The ClusterAnalysis.m file contains some usage messages
> >for DistanceMatrix, but not the code. Where is the code?
> >
> >
> Sometimes a package developer will code up a function in the kernel, and
> then include just the usage message in the .m file. This is what occurs
> here. The DistanceMatrix function can be accessed without loading the
> package, as it already exists in the kernel. Try the following from a
> fresh kernel (without loading Statistics`ClusterAnalysis`):
> Quit
> data  = Table[ Random[], {3}, {2}];
> Statistics`ClusterAnalysis`DistanceMatrix[data]
> and you will get the distance matrix. If you load the package, then you
> won't need to fully qualify the function name to use it. So, if you were
> looking at the package to discover how someone could write Mathematica
> code to create a distance matrix so quickly you will discover that they
> "cheated", i.e., they coded the function within the kernel.
> Carl Woll
> Wolfram Research


  • Prev by Date: RE: FrameTicks
  • Next by Date: $TraceOn $TraceOff TraceDialog
  • Previous by thread: Re: Re: distance function
  • Next by thread: Re: distance function