probability-0.1: Computations with discrete random variables

Visualize

Synopsis

Documentation

data FigureEnv Source

global settings for one figure

Constructors

FE

Instances

figure :: FigureEnv Source

default settings for figure environment

types to represent settings for individual plots

data Color Source

Constructors

Red

Instances

data LineStyle Source

Constructors

Instances

type PlotFun = Float -> Float Source

data Plot Source

settings for individual plots

Constructors

plot :: Plot Source

default plotting environment

colors :: [Color]Source

setColor :: Plot -> Color -> Plot Source

autoColor :: [Plot] -> [Plot]Source

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

create a plot from a distribution

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

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 => R [a] -> IO Plot Source

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

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

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

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

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

type Vis = IO () Source

Visualization output

creating figures

fig :: [Plot] -> Vis Source

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

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

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

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

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

out0 :: String -> String -> IO () Source

out1 :: String -> String -> IO () Source

AltStyle によって変換されたページ (->オリジナル) /