probability-0.2.2.1: Probabilistic Functional Programming

Numeric.Probability.Visualize

Contents

Synopsis

Documentation

data FigureEnv

global settings for one figure

Constructors

FE 

Instances

figure :: FigureEnv

default settings for figure environment

types to represent settings for individual plots

type PlotFun = Float -> Float

data Plot

settings for individual plots

Constructors

Plot 

Fields

ys :: [Float]
 
xs :: [Float]
 
color :: Color
 
lineStyle :: LineStyle
 
lineWidth :: Int
 
label :: String
 

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)]

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

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

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

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