probability-0.2.2.1: Probabilistic Functional ProgrammingSource codeContentsIndex
Numeric.Probability.Visualize
Contents
types to represent settings for individual plots
creating figures
Synopsis
data FigureEnv = FE {
fileName :: String
title :: String
xLabel :: String
yLabel :: String
}
figure :: FigureEnv
data Color
= Black
| Blue
| Green
| Red
| Brown
| Gray
| Purple
| DarkGray
| Cyan
| LightGreen
| Magenta
| Orange
| Yellow
| White
| Custom Int Int Int
data LineStyle
= Solid
| Dashed
| Dotted
| DotDash
| LongDash
| TwoDash
type PlotFun = Float -> Float
data Plot = Plot {
ys :: [Float]
xs :: [Float]
color :: Color
lineStyle :: LineStyle
lineWidth :: Int
label :: String
}
plot :: Plot
colors :: [Color]
setColor :: Plot -> Color -> Plot
autoColor :: [Plot] -> [Plot]
plotD :: ToFloat a => Dist a -> Plot
plotRD :: ToFloat a => RDist a -> IO Plot
plotF :: (FromFloat a, ToFloat b) => (Float, Float, Float) -> (a -> b) -> Plot
plotL :: ToFloat a => [a] -> Plot
plotRL :: ToFloat a => T [a] -> IO Plot
yls :: [Float] -> Plot -> Plot
metaTuple :: [Float] -> [(Float, Float)] -> [(Float, Float)]
decr :: (Ord a, Fractional a) => a -> a
incr :: (Ord a, Fractional a) => a -> a
type Vis = IO ()
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 :: String -> String -> IO ()
out1 :: String -> String -> IO ()
Documentation
data FigureEnv Source
global settings for one figure
Constructors
FE
fileName :: String
title :: String
xLabel :: String
yLabel :: String
show/hide Instances
figure :: FigureEnvSource
default settings for figure environment
types to represent settings for individual plots
data Color Source
Constructors
Black
Blue
Green
Red
Brown
Gray
Purple
DarkGray
Cyan
LightGreen
Magenta
Orange
Yellow
White
Custom Int Int Int
show/hide Instances
data LineStyle Source
Constructors
Solid
Dashed
Dotted
DotDash
LongDash
TwoDash
show/hide Instances
type PlotFun = Float -> FloatSource
data Plot Source
settings for individual plots
Constructors
Plot
ys :: [Float]
xs :: [Float]
color :: Color
lineStyle :: LineStyle
lineWidth :: Int
label :: String
plot :: PlotSource
default plotting environment
colors :: [Color]Source
setColor :: Plot -> Color -> PlotSource
autoColor :: [Plot] -> [Plot]Source
plotD :: ToFloat a => Dist a -> PlotSource
create a plot from a distribution
plotRD :: ToFloat a => RDist a -> IO PlotSource
plotF :: (FromFloat a, ToFloat b) => (Float, Float, Float) -> (a -> b) -> PlotSource
create a plot from a function
plotL :: ToFloat a => [a] -> PlotSource
create a plot from a list
plotRL :: ToFloat a => T [a] -> IO PlotSource
yls :: [Float] -> Plot -> PlotSource
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] -> VisSource
figP :: FigureEnv -> [Plot] -> VisSource
showParams :: Show a => [a] -> [String] -> StringSource
legend :: Float -> Float -> [Plot] -> StringSource
drawy :: ToFloat a => Int -> Plot -> [a] -> StringSource
vec :: Show a => [a] -> StringSource
out0 :: String -> String -> IO ()Source
out1 :: String -> String -> IO ()Source
Produced by Haddock version 2.4.2