mathalgos

package
v0.0.0-...-e348e8c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRelationProperties

func GetRelationProperties(model models.BinaryRelationModel) []string

Types

type BinaryRelationGraph

type BinaryRelationGraph struct {
	// contains filtered or unexported fields
}

func NewBinaryRelationGraph

func NewBinaryRelationGraph(model models.BinaryRelationModel) *BinaryRelationGraph

func (*BinaryRelationGraph) Attributes

func (g *BinaryRelationGraph) Attributes() []encoding.Attribute

func (*BinaryRelationGraph) DOTID

func (g *BinaryRelationGraph) DOTID() string

func (*BinaryRelationGraph) EdgeAttributes

func (g *BinaryRelationGraph) EdgeAttributes(e simple.Edge) []encoding.Attribute

func (*BinaryRelationGraph) GenerateImage

func (g *BinaryRelationGraph) GenerateImage() ([]byte, error)

func (*BinaryRelationGraph) NodeAttributes

func (g *BinaryRelationGraph) NodeAttributes(id int64) []encoding.Attribute

type FixedLengthCoding

type FixedLengthCoding struct {
	// contains filtered or unexported fields
}

func NewFixedLengthCoding

func NewFixedLengthCoding(input string) *FixedLengthCoding

func RecreateFromAlphabet

func RecreateFromAlphabet(alphabet map[string]string) *FixedLengthCoding

func (*FixedLengthCoding) AverageCodeLength

func (f *FixedLengthCoding) AverageCodeLength() int

func (*FixedLengthCoding) Decode

func (f *FixedLengthCoding) Decode(encoded string) string

func (*FixedLengthCoding) Encode

func (f *FixedLengthCoding) Encode(input string) string

func (*FixedLengthCoding) GetAlphabetDict

func (f *FixedLengthCoding) GetAlphabetDict() map[string]string

type LogicSimplifier

type LogicSimplifier struct{}

func NewLogicSimplifier

func NewLogicSimplifier() *LogicSimplifier

func (*LogicSimplifier) ExtractVariables

func (s *LogicSimplifier) ExtractVariables(exprStr string) map[string]bool

func (*LogicSimplifier) TransformExpression

func (s *LogicSimplifier) TransformExpression(exprStr string) string

type ProbabilityCalculating

type ProbabilityCalculating struct {
	// contains filtered or unexported fields
}

func NewProbabilityCalculating

func NewProbabilityCalculating(input string) *ProbabilityCalculating

func (*ProbabilityCalculating) GetProbabilities

func (p *ProbabilityCalculating) GetProbabilities() map[string]float64

type ShennonFanoCoding

type ShennonFanoCoding struct {
	// contains filtered or unexported fields
}

func NewShennonFanoCoding

func NewShennonFanoCoding(input string) *ShennonFanoCoding

func RecreateFromCodes

func RecreateFromCodes(codes map[string]string) *ShennonFanoCoding

func (*ShennonFanoCoding) AverageCodeLength

func (s *ShennonFanoCoding) AverageCodeLength() float64

func (*ShennonFanoCoding) Decode

func (s *ShennonFanoCoding) Decode(encoded string) string

func (*ShennonFanoCoding) Encode

func (s *ShennonFanoCoding) Encode(input string) string

func (*ShennonFanoCoding) GetAlphabetDict

func (s *ShennonFanoCoding) GetAlphabetDict() map[string]string

type TruthTableGenerator

type TruthTableGenerator struct {
	// contains filtered or unexported fields
}

func NewTruthTableGenerator

func NewTruthTableGenerator(expression string) *TruthTableGenerator

func (*TruthTableGenerator) CreateTruthTableImage

func (t *TruthTableGenerator) CreateTruthTableImage() ([]byte, error)

func (*TruthTableGenerator) GenerateTruthTable

func (t *TruthTableGenerator) GenerateTruthTable() ([][]bool, []string, error)

type VennDiagramBuilder

type VennDiagramBuilder struct {
	// contains filtered or unexported fields
}

func NewVennDiagramBuilder

func NewVennDiagramBuilder(apiKey string) *VennDiagramBuilder

func (*VennDiagramBuilder) BuildDiagram

func (v *VennDiagramBuilder) BuildDiagram(expression string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL