We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__call__
1 parent 5be42da commit 22d7f58Copy full SHA for 22d7f58
quantecon/ecdf.py
@@ -48,4 +48,6 @@ def __call__(self, x):
48
Fraction of the sample less than x
49
50
"""
51
- return np.mean(self.observations <= x)
+ f = lambda a, b: a <= b
52
+ vf = np.vectorize(f)
53
+ return np.mean(vf(self.observations, x))
0 commit comments