272f235fd8418eae67631d62051084eb363f781b,chaospy/quadrature/gauss_patterson.py,,quad_gauss_patterson,#Any#Any#,42
Before Change
if len(lower) > 1:
values = [quad_gauss_patterson(order[i], (domain[0][i], domain[1][i]))
for i in range(len(domain[0] ))]
abscissas = [_[0][0] for _ in values]
weights = [_[1] for _ in values]
After Change
weights /= numpy.sum(weights)
return abscissas, weights
domain = numpy.array(numpy.broadcast_arrays(*domain))
lower, upper = numpy.atleast_2d(domain.T).T
lower, upper, order = numpy.broadcast_arrays(lower, upper, order)
if lower.size > 1:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: jonathf/chaospy
Commit Name: 272f235fd8418eae67631d62051084eb363f781b
Time: 2020-11-05
Author: jonathf@users.noreply.github.com
File Name: chaospy/quadrature/gauss_patterson.py
Class Name:
Method Name: quad_gauss_patterson
Project Name: pymc-devs/pymc3
Commit Name: e3fd56b08ed5c4d7247a147c3fab7c0fe59e9a0e
Time: 2019-02-16
Author: luciano.paz.neuro@gmail.com
File Name: pymc3/tests/test_mixture.py
Class Name:
Method Name: generate_normal_mixture_data
Project Name: nipy/dipy
Commit Name: 45f06d55a1cfe2b1a7e6ae70f262b6ea3dcd8f8b
Time: 2011-10-10
Author: Bago.Amirbekian@ucsf.edu
File Name: dipy/core/geometry.py
Class Name:
Method Name: cart2sphere