It's a large system with the following license citation. I really only need a single method from it (sample from Gamma).

Jeff

/*
* Copyright (c) 2005, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
*   notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
*   notice, this list of conditions and the following disclaimer in
*   the documentation and/or other materials provided with the
* distribution. *
* * Neither the name of the University of California, Berkeley nor
*   the names of its contributors may be used to endorse or promote
*   products derived from this software without specific prior
*   written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/


Grant Ingersoll wrote:
What's the license on it? Alternatively, perhaps an email to the authors would encourage them to donate it by opening a JIRA issue.


On Mar 3, 2009, at 10:17 PM, Jeff Eastman wrote:

The problem with using Blog is that it is meant to be a stand-alone simulation environment and we just need two (one really) of its multitude of sampling classes. I also have not been able to compile it into a jar file, nor have I been able to find one. It does not seem to build on my Mac. Uncommons math already has Gaussian; has some good random number generators; and I just need to figure out how to sample from a Beta distribution with it. The implementation seems simple enough: Beta(a, b) = Gam(1, a)/(Gam(1, a)*Gam(1, b)) - but I don't fully understand what I'm doing, yet.

Another alternative suggested by Ted is based upon commons math, but it requires some of Ted's personal extensions to support Beta.

Jeff




Grant Ingersoll wrote:
Are they in the Maven repo? If they are, then we can just add the dependency that way.
On Mar 3, 2009, at 6:42 PM, Jeff Eastman wrote:

Hi Ted,

I'm still trying to resolve two external dependencies on the Blog package to get moving again on DP Clustering:

import blog.distrib.Beta;
import blog.distrib.UnivarGaussian;

I notice we already have uncommons math in trunk and so rNorm should be trivial. Can you suggest how to implement rBeta with it? From the API, it is not obvious to me.

Jeff









Attachment: PGP.sig
Description: PGP signature

Reply via email to