csvReader

package
v0.0.0-...-7aad052 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadCSV

type ReadCSV struct{}

ReadCSV struct

func NewReadCSV

func NewReadCSV() *ReadCSV

NewReadCSV constructor

func (*ReadCSV) GetCSVs

func (rc *ReadCSV) GetCSVs() []string

GetCSVs gets the list of CSV files in the "CSVs" folder.

func (*ReadCSV) GetData

func (rc *ReadCSV) GetData(filePath string) ([]float64, error)

Get the worked data

func (*ReadCSV) GetIndependentVariables

func (rc *ReadCSV) GetIndependentVariables(filePath string, hasHeader bool) ([][]float64, error)

GetIndependentVariables gets independent variables from a CSV file.

func (*ReadCSV) GetTargetValues

func (rc *ReadCSV) GetTargetValues(filePath string, hasHeader bool) ([]float64, error)

GetTargetValues gets target values from a CSV file.

func (*ReadCSV) WriteCSV

func (rc *ReadCSV) WriteCSV(csvFile string, values []string)

WriteCSV writes a single row of data to the end of a CSV file.

func (*ReadCSV) WriteDB

func (rc *ReadCSV) WriteDB(csvFile string, values [][]float64)

WriteDB writes data to a CSV file.

Jump to

Keyboard shortcuts

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