~nipy-developers/nipy/fff2

« back to all changes in this revision

Viewing changes to doc/pyplots/enn_demo.py

  • Committer: Gael Varoquaux
  • Date: 2009-02-15 18:04:59 UTC
  • mto: This revision was merged to the branch mainline in revision 225.
  • Revision ID: gael.varoquaux@normalesup.org-20090215180459-j81siu4g5td03cza
DOC: Document the enn. Fix the custom sphinx directive to work with trunk sphinx

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import numpy as np
 
2
x = np.c_[np.random.normal(size=1e4), 
 
3
          np.random.normal(scale=4, size=1e4)]
 
4
 
 
5
from fff2.utils.emp_null import ENN
 
6
enn = ENN(x)
 
7
enn.threshold(verbose=True)
 
8