Skip to content

cdf: 'FDRV' object has no attribute 'xs' #16

@pelegm

Description

@pelegm

The following:

In [4]: ps = drv.pspace.FDPSpace([1] * 8 + [0] + [1]*2 + [0])

In [5]: d = drv.rv.FDRV('d', ps, lambda x: x**2)

In [6]: d.cdf(0)

raises

Traceback (most recent call last):
  File "<ipython-input-6-66ba4bb58e45>", line 1, in <module>
    d.cdf(0)
  File "drv/rv.py", line 151, in cdf
    return self._cdf(self.xs.index(k))
AttributeError: 'FDRV' object has no attribute 'xs'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions