[SciPy-user] remove duplicate points...
Wed Apr 23 11:10:27 CDT 2008
On Wed, Apr 23, 2008 at 10:50 AM, Angus McMorland <firstname.lastname@example.org> wrote:
> As a quick test:
> sz = 1e7
> sz - np.unique(np.random.normal(size=(sz,3)).prod(axis=1)).size
> returns 0 - i.e. no common products unless the points are deliberately
> made the same. Am I mis-thinking this?
I think so. You example shows that 2^53 is a much bigger number than 10^7.
OTOH the likelihood that two different points have a zero coordinate is higher.
Nathan Bell email@example.com
More information about the SciPy-user