probability-0.2.8: Probabilistic Functional Programming
Safe HaskellSafe-Inferred
LanguageHaskell98

Numeric.Probability.Visualize

Synopsis

Documentation

data FigureEnv Source #

global settings for one figure

Constructors

FE 

Instances

Instances details
Show FigureEnv Source # 
Instance details

Defined in Numeric.Probability.Visualize

figure :: FigureEnv Source #

default settings for figure environment

types to represent settings for individual plots

data Color Source #

Instances

Instances details
Show Color Source # 
Instance details

Defined in Numeric.Probability.Visualize

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

Eq Color Source # 
Instance details

Defined in Numeric.Probability.Visualize

Methods

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

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

data LineStyle Source #

Instances

Instances details
Show LineStyle Source # 
Instance details

Defined in Numeric.Probability.Visualize

Eq LineStyle Source # 
Instance details

Defined in Numeric.Probability.Visualize

data Plot Source #

settings for individual plots

Constructors

Plot 

Fields

plot :: Plot Source #

default plotting environment

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

create a plot from a distribution

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

create a plot from a function

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

create a plot from a list

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

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

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

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

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

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

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

type Vis = IO () Source #

Visualization output

creating figures

fig :: [Plot] -> Vis Source #

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

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

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