Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  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/mglutil/gui/BasicWidgets/Tk/tablemaker.py   Pymol-script-repo(Download)
            px, py = self.points[i]
            self.points[i] = (px, d-py)
        alpha_max= Numeric.maximum.reduce(self.alpha_arr)
        self.alpha_arr = (self.alpha_arr*(-1)+alpha_max).astype(Numeric.Int16)
        shapes = [0,1]

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)
    mol.elist = Numeric.array(elist)
    mol.r = [Numeric.minimum.reduce(mol.elist), 
                Numeric.maximum.reduce(mol.elist)]
    mol.nbins = Tkinter.IntVar()
    mol.nbins.set(10)

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)
            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)
            mol.nbins.set(10)

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)

  1 | 2  Next