Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

[MRG] New general evaluate() function #144

Merged
merged 3 commits into from
Mar 21, 2014
Merged

Conversation

ndawe
Copy link
Member

@ndawe ndawe commented Mar 21, 2014

Evaluate ROOT histograms, functions, graphs, and splines over NumPy arrays.

>>> from root_numpy import evaluate                                         
>>> from ROOT import TF1, TF2                                               
>>> func = TF1("f1", "x*x")                                                 
>>> evaluate(func, [1, 2, 3, 4])                                            
array([  1.,   4.,   9.,  16.])                                             
>>> func = TF2("f2", "x*y")                                                 
>>> evaluate(func, [[1, 1], [1, 2], [3, 1]])                                
array([ 1.,  2.,  3.])

ndawe added a commit that referenced this pull request Mar 21, 2014
[MRG] New general evaluate() function
@ndawe ndawe merged commit 4fd3d71 into scikit-hep:master Mar 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant