Did I find the right examples for you? yes no

All Samples(11)  |  Call(11)  |  Derive(0)  |  Import(0)
reduce(a, axis=0, dtype=None, out=None, keepdims=False)

Reduces `a`'s dimension by one, by applying ufunc along one axis.

Let :math:`a.shape = (N_0, ..., N_i, ..., N_{M-1})`.  Then
:math:`ufunc.reduce(a, axis=i)[k_0, ..,k_{i-1}, k_{i+1}, .., k_{M-1}]` =
the result of iterating `j` over :math:`range(N_i)`, cumulatively applying
ufunc to each :math:`a[k_0, ..,k_{i-1}, j, k_{i+1}, .., k_{M-1}]`.
For a one-dimensional array, reduce produces results equivalent to:
::(more...)

src/p/y/Pymol-script-repo-HEAD/modules/pdb2pqr/contrib/numpy-1.1.0/numpy/oldnumeric/rng_stats.py   Pymol-script-repo(Download)
def histogram(data, nbins, range = None):
    data = Numeric.array(data, Numeric.Float)
    if range is None:
        min = Numeric.minimum.reduce(data)
        max = Numeric.maximum.reduce(data)

src/p/y/Pymol-script-repo-HEAD/modules/ADT/AutoDockTools/GridParameters.py   Pymol-script-repo(Download)
    def getSideLengths(self, mol):
        c = mol.allAtoms.coords
        maxo = Numeric.maximum.reduce(c)
        mino = Numeric.minimum.reduce(c)
        sideLengths = maxo-mino
    def getSideLengths(self, mol):
        c = mol.allAtoms.coords
        maxo = Numeric.maximum.reduce(c)
        mino = Numeric.minimum.reduce(c)
        sideLengths = maxo-mino

src/p/y/Pymol-script-repo-HEAD/modules/ADT/AutoDockTools/Utilities24/write_clustering_histogram_postscript.py   Pymol-script-repo(Download)
        reverseList.append(range(rLctr, rLctr+len(l)))
    mol.elist = Numeric.array(elist)
    mol.r = [Numeric.minimum.reduce(mol.elist), 
                Numeric.maximum.reduce(mol.elist)]
    mol.nbins = Tkinter.IntVar()

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/numpy/oldnumeric/rng_stats.py   Spherebot-Host-GUI(Download)
def histogram(data, nbins, range = None):
    data = Numeric.array(data, Numeric.Float)
    if range is None:
        min = Numeric.minimum.reduce(data)
        max = Numeric.maximum.reduce(data)

src/p/y/Pymol-script-repo-HEAD/modules/ADT/AutoDockTools/autogpfCommands.py   Pymol-script-repo(Download)
def getSideLengths(mol, spacing):
    c = mol.allAtoms.coords
    maxo = Numeric.maximum.reduce(c)
    mino = Numeric.minimum.reduce(c)
    sideLengths = maxo-mino

src/p/y/Pymol-script-repo-HEAD/modules/ADT/AutoDockTools/autoanalyzeCommands.py   Pymol-script-repo(Download)
                return 'ERROR'
            mol.elist = Numeric.array(elist)
            mol.r = [Numeric.minimum.reduce(mol.elist), 
                        Numeric.maximum.reduce(mol.elist)]
            mol.nbins = Tkinter.IntVar(master=self.vf.GUI.ROOT)

src/n/u/nupic-linux64-HEAD/lib64/python2.6/site-packages/numpy/oldnumeric/rng_stats.py   nupic-linux64(Download)
def histogram(data, nbins, range = None):
    data = Numeric.array(data, Numeric.Float)
    if range is None:
        min = Numeric.minimum.reduce(data)
        max = Numeric.maximum.reduce(data)

src/m/i/MissionPlanner-HEAD/Lib/site-packages/numpy/oldnumeric/rng_stats.py   MissionPlanner(Download)
def histogram(data, nbins, range = None):
    data = Numeric.array(data, Numeric.Float)
    if range is None:
        min = Numeric.minimum.reduce(data)
        max = Numeric.maximum.reduce(data)

src/n/u/numpy-1.8.1/numpy/oldnumeric/rng_stats.py   numpy(Download)
def histogram(data, nbins, range = None):
    data = Numeric.array(data, Numeric.Float)
    if range is None:
        min = Numeric.minimum.reduce(data)
        max = Numeric.maximum.reduce(data)

src/b/i/biskit-2.4/Biskit/hist.py   biskit(Download)
    data = Numeric.array(data, Numeric.Float)
    if range is None:
        min = Numeric.minimum.reduce(data)
        max = Numeric.maximum.reduce(data)
    else: