implementation for computeConditional
add stubs for sampling methods and fix interface