Skip to content

Commit

Permalink
Unify EmpPdf and MarginalizedEmpPdf in .pxd
Browse files Browse the repository at this point in the history
  • Loading branch information
strohel committed Aug 18, 2012
1 parent c59893d commit 72396c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pybayes/pdfs.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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


Expand Down

0 comments on commit 72396c9

Please sign in to comment.