Documentation ¶
Index ¶
- func ReadCSV(filename string) ([][]string, error)
- func ReadCSVAsFloat(filename string) ([][]float64, error)
- type Set
- func (s Set) Add(i interface{})
- func (s Set) Cardinality() int
- func (s Set) Contains(i interface{}) bool
- func (s Set) Difference(set Set) Set
- func (s Set) Intersection(set Set) Set
- func (s Set) IsSubsetOf(set Set) bool
- func (s Set) Len() int
- func (s Set) Remove(i interface{})
- func (s Set) String() string
- func (s Set) Union(set Set) Set
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadCSVAsFloat ¶
ReadCSVAsFloat returns the values of csv as floats TODO runtime for very large csv file ???
Types ¶
type Set ¶
type Set map[interface{}]bool
Set represents a set data type
func NewSet ¶
func NewSet(values ...interface{}) Set
NewSet create a new set from values
Example ¶
package main import ( "fmt" "github.com/Duncodes/mathlib" ) func main() { set := mathlib.NewSet(1, 2, 3, 3, 4) fmt.Println(set) }
Output:
func (Set) Cardinality ¶
func (Set) Difference ¶
Difference returns a set of elements that are in the object set and not in provided set
func (Set) Intersection ¶
Intersection return a set of those elemets that are in both sets
func (Set) IsSubsetOf ¶
IsSubsetOf returns true if set contains another set
Directories ¶
Path | Synopsis |
---|---|
Package matrix provide function and methods for matrix operations Matrix operations are done on float arrays
|
Package matrix provide function and methods for matrix operations Matrix operations are done on float arrays |
Package plot provides methods to plot chats and graphs
|
Package plot provides methods to plot chats and graphs |
Package stats provided functions and methods to compute stat
|
Package stats provided functions and methods to compute stat |
Click to show internal directories.
Click to hide internal directories.