Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

stat/distmv: add Bounds method to Uniform for extracting variable bounds #183

Merged
merged 1 commit into from
May 6, 2017

Conversation

btracey
Copy link
Member

@btracey btracey commented May 3, 2017

No description provided.

@@ -63,6 +63,21 @@ func NewUnitUniform(dim int, src *rand.Source) *Uniform {
}
}

// Bounds returns the bounds on the variables of the distribution. If the input
// is nil, a new slice is allocated and returned. If the input in non-nil, then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/in/is

@@ -63,6 +63,21 @@ func NewUnitUniform(dim int, src *rand.Source) *Uniform {
}
}

// Bounds returns the bounds on the variables of the distribution. If the input
// is nil, a new slice is allocated and returned. If the input in non-nil, then
// the bounds are stored in place into the input argument, and Bounds will panic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in-place?

@btracey btracey merged commit 7fad93f into master May 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants