probability-0.2.5.1: Probabilistic Functional Programming

Safe HaskellSafe
LanguageHaskell98

Numeric.Probability.Visualize

Contents

Synopsis

Documentation

data FigureEnv #

global settings for one figure

Constructors

FE 

figure :: FigureEnv #

default settings for figure environment

types to represent settings for individual plots

data Color #

Instances

Eq Color # 

Methods

(==) :: Color -> Color -> Bool #

(/=) :: Color -> Color -> Bool #

Show Color # 

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

type PlotFun = Float -> Float #

data Plot #

settings for individual plots

Constructors

Plot 

Fields

plot :: Plot #

default plotting environment

autoColor :: [Plot] -> [Plot] #

plotD :: ToFloat a => Dist a -> Plot #

create a plot from a distribution

plotRD :: ToFloat a => RDist a -> IO Plot #

plotF :: (FromFloat a, ToFloat b) => (Float, Float, Float) -> (a -> b) -> Plot #

create a plot from a function

plotL :: ToFloat a => [a] -> Plot #

create a plot from a list

plotRL :: ToFloat a => T [a] -> IO Plot #

yls :: [Float] -> Plot -> Plot #

metaTuple :: [Float] -> [(Float, Float)] -> [(Float, Float)] #

incr :: (Ord a, Fractional a) => a -> a #

we want to increase the bounds absolutely, account for negative numbers

decr :: (Ord a, Fractional a) => a -> a #

we want to increase the bounds absolutely, account for negative numbers

type Vis = IO () #

Visualization output

creating figures

fig :: [Plot] -> Vis #

figP :: FigureEnv -> [Plot] -> Vis #

showParams :: Show a => [a] -> [String] -> String #

legend :: Float -> Float -> [Plot] -> String #

drawy :: ToFloat a => Int -> Plot -> [a] -> String #

vec :: Show a => [a] -> String #

out0 :: FilePath -> String -> IO () #

out1 :: FilePath -> String -> IO () #