Permalink
Browse files

Unify EmpPdf and MarginalizedEmpPdf in .pxd

  • Loading branch information...
1 parent c59893d commit 72396c97ec65015b4e3fc8fc8033351caf5e516a @strohel committed Aug 18, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 pybayes/pdfs.pxd
View
@@ -82,6 +82,7 @@ cdef class LogNormPdf(AbstractGaussPdf):
cdef class AbstractEmpPdf(Pdf):
cdef public np.ndarray weights # dtype=double, ndims=1
+ cdef public np.ndarray particles # dtype=double, ndims=2
@cython.locals(wsum = double)
cpdef bint normalise_weights(self) except False
@@ -91,14 +92,11 @@ cdef class AbstractEmpPdf(Pdf):
cdef class EmpPdf(AbstractEmpPdf):
- cdef public np.ndarray particles # dtype=double, ndims=2
-
cpdef bint resample(self) except False
cdef class MarginalizedEmpPdf(AbstractEmpPdf):
cdef public np.ndarray gausses # dtype=GaussPdf, ndims=1
- cdef public np.ndarray particles # dtype=double, ndims=2
cdef public int _gauss_shape, _part_shape

0 comments on commit 72396c9

Please sign in to comment.