NAME
Logic::Probabilistic::PChoice - Represents an annotated disjunction or categorical random choice.
SYNOPSIS
use Logic::Probabilistic::PChoice;
my $choice = Logic::Probabilistic::PChoice->new(
predicate => 'weather',
outcomes => [
[ 0.7, 'sunny' ],
[ 0.2, 'cloudy' ],
[ 0.1, 'rainy' ],
],
);
DESCRIPTION
Logic::Probabilistic::PChoice models a discrete random variable with mutually exclusive categorical outcomes. In any possible world, at most one outcome is selected and asserted into the knowledgebase.