srtree-0.1.1.0: A general framework to work with Symbolic Regression expression trees.
Copyright(c) Fabricio Olivetti 2021 - 2021
LicenseBSD3
Maintainerfabricio.olivetti@gmail.com
Stabilityexperimental
Portability
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.SRTree.Print

Description

Conversion functions to display the expression trees in different formats.

Synopsis

Documentation

data DisplayNodes ix val Source #

Data structure containing the needed definitions to print a SRTree.

Constructors

D 

showExpr :: (Show ix, Show val) => SRTree ix val -> DisplayNodes ix val -> String Source #

Converts a tree to a String using the specifications given by DisplayNodes

showTree :: (Show ix, Show val) => SRTree ix val -> DisplayNodes ix val -> String Source #

Converts a tree to a String using the specifications given by DisplayNodes

printExpr :: (Show ix, Show val) => SRTree ix val -> DisplayNodes ix val -> IO () Source #

Prints a tree as an expression using the specifications given by DisplayNodes

showDefault :: (Show ix, Show val) => SRTree ix val -> String Source #

Displays a tree as an expression

showTikz :: (Show ix, Show val, RealFrac val) => SRTree ix val -> String Source #

Displays a tree in Tikz format

showPython :: (Show ix, Show val) => SRTree ix val -> String Source #

Displays a tree as a numpy compatible expression.

showLatex :: (Show ix, Show val) => SRTree ix val -> String Source #

Displays a tree as a sympy compatible expression.