Advise-me-0.1: Assessment services for the Advise-Me project

Maintainerbastiaan.heeren@ou.nl
Stabilityprovisional
Portabilityportable (depends on ghc)
Safe HaskellNone
LanguageHaskell98

Database.Priors

Description

Counts occurrences of evidence in the database. This module allows us to count how often nodes are in a particular state.

Synopsis

Documentation

calculatePriors :: Map (StudentID, TaskID) Evidence -> Priors Source #

Calculate the priors, that is: for every node, count how often each state occurs in the observed data.

newtype Priors Source #

Associates nodes with their priors.

Constructors

Priors (Map (TaskID, NodeID) Prior) 
Instances
Semigroup Priors Source # 
Instance details

Defined in Database.Priors

Monoid Priors Source # 
Instance details

Defined in Database.Priors

Pretty Priors Source # 
Instance details

Defined in Database.Priors

Methods

pretty :: Priors -> Doc #

prettyList :: [Priors] -> Doc #

newtype Prior Source #

Associates state indices (or their absence) with a counter.

Constructors

Prior (Map (Maybe String) Int) 
Instances
Semigroup Prior Source # 
Instance details

Defined in Database.Priors

Methods

(<>) :: Prior -> Prior -> Prior #

sconcat :: NonEmpty Prior -> Prior #

stimes :: Integral b => b -> Prior -> Prior #

Monoid Prior Source # 
Instance details

Defined in Database.Priors

Methods

mempty :: Prior #

mappend :: Prior -> Prior -> Prior #

mconcat :: [Prior] -> Prior #

Pretty Prior Source # 
Instance details

Defined in Database.Priors

Methods

pretty :: Prior -> Doc #

prettyList :: [Prior] -> Doc #