MathGroup Archive 2001

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

Search the Archive

Statistics functions in packages

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26830] Statistics functions in packages
  • From: "Tom De Vries" <tdevries at shop.westworld.ca>
  • Date: Thu, 25 Jan 2001 01:13:12 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello, I posted a question earlier about using Statistics packages in user
defined packages.  I was having some trouble with the imported functions not
being recognized.

Thanks to David Park for the suggestion he made that fixed the problem.

Here is a simple example....

Suppose you want to use the function  NormalDistribution in a package you
have created.

NormalDistribution is in the Statistics`NormalDistribution`  package. 
However, what worked for me was to place Statistics`NormalDistribution`  
and Statistics`Common`DistributionsCommon` in the BeginPackage line of my
package.


I don't know if that made any sense, or if there is something else I should
have done, but that has worked.   


Is that the way to correctly do things....  if a function is in a "common"
package, put the package name and the common package name in the
BeginPackage line?

Thanks again to the many helpers in this group!  It really is an amazing
resource and I always appreciate the time that is spent helping out.

Tom De Vries



  • Prev by Date: Re: triangles in circles
  • Next by Date: Re: exporting animations
  • Previous by thread: Statistics functions in packages
  • Next by thread: Re: Statistics functions in packages