Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
steppable::graphing Namespace Reference

Graphing utilities for showing graphs in the console. More...

Namespaces

namespace  __internals
 Graphing utilities for showing graphs in the console.
namespace  anonymous_namespace{conPlot.cpp}
namespace  GraphDot
 Contains string values of dots to be graphed on the screen.

Classes

struct  BarGraphOptions
struct  BarOptions
struct  GraphOptions
 Stores the opotions for each graph shown on screen. More...
struct  GraphOptionsBase
struct  LineOptions
 Stores options for each line graphed on screen. More...
struct  LineOptionsBase

Concepts

concept  LineOptionsDerivation

Typedefs

using GraphFn = std::function<Number(Number)>
using NumberPair = std::pair<Number, Number>

Enumerations

enum class  ShadeOptions : std::uint8_t {
  NO_SHADE = 0 , SHADE_ABOVE_FIRST = 1 , SHADE_BELOW_SECOND = 2 , SHADE_BETWEEN_BOTH = 3 ,
  SHADE_OUTSIDE_BOTH = 4 , SHADE_ABOVE_SECOND = 5 , SHADE_BELOW_FIRST = 6
}

Functions

void conPlotBar (const std::vector< std::vector< Number > > &numbers, const BarGraphOptions &graphOptions, const std::vector< BarOptions > &barsOptions)
void conPlot (const std::vector< GraphFn > &f, const GraphOptions &graphOptions, const std::vector< LineOptions > &linesOptions)
void pieChart ()
void linearInterpolateFill (std::map< long long, long long > *data, long long xMin, long long xMax)
 Fill in integral values with linear interpolation.
void cubicInterpolateFill (std::map< long long, long long > *data, long long xMin, long long xMax)
 Fill in integral values with cubic interpolation.

Detailed Description

Graphing utilities for showing graphs in the console.

Typedef Documentation

◆ GraphFn

using steppable::graphing::GraphFn = std::function<Number(Number)>

◆ NumberPair

Enumeration Type Documentation

◆ ShadeOptions

enum class steppable::graphing::ShadeOptions : std::uint8_t
strong
Enumerator
NO_SHADE 
SHADE_ABOVE_FIRST 
SHADE_BELOW_SECOND 
SHADE_BETWEEN_BOTH 
SHADE_OUTSIDE_BOTH 
SHADE_ABOVE_SECOND 
SHADE_BELOW_FIRST 

Function Documentation

◆ conPlot()

void steppable::graphing::conPlot ( const std::vector< GraphFn > & f,
const GraphOptions & graphOptions,
const std::vector< LineOptions > & linesOptions )
Here is the call graph for this function:

◆ conPlotBar()

void steppable::graphing::conPlotBar ( const std::vector< std::vector< Number > > & numbers,
const BarGraphOptions & graphOptions,
const std::vector< BarOptions > & barsOptions )
Here is the call graph for this function:

◆ cubicInterpolateFill()

void steppable::graphing::cubicInterpolateFill ( std::map< long long, long long > * data,
long long xMin,
long long xMax )

Fill in integral values with cubic interpolation.

Parameters
dataAn x-y corresponding table of values. Must have at least 4 items.
xMinMinimum x value.
xMaxMaximum x value.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ linearInterpolateFill()

void steppable::graphing::linearInterpolateFill ( std::map< long long, long long > * data,
long long xMin,
long long xMax )

Fill in integral values with linear interpolation.

Parameters
dataAn x-y corresponding table of values. Must have at least 2 items.
xMinMinimum x value.
xMaxMaximum x value.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pieChart()

void steppable::graphing::pieChart ( )
Untitled