Created
December 15, 2011 17:10
-
-
Save bgamari/1481901 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.Set (Set) | |
import qualified Data.Set as S | |
import Data.EnumMap (EnumMap) | |
import qualified Data.EnumMap as EM | |
import Data.EnumSet (EnumSet) | |
import qualified Data.EnumSet as ES | |
data Priors = Priors { aLambda :: Double | |
, aTheta :: Double | |
, aPhi :: Double | |
} | |
deriving (Show, Eq) | |
newtype Entity = Entity Int | |
newtype Node = Node Int | |
data Network = Network { cFriends :: Set (Node,Node) | |
, cNodeEntities :: EnumMap Node (EnumSet Entity) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment