mocks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPoint

type DataPoint struct {
	mock.Mock
}

DataPoint is an autogenerated mock type for the DataPoint type

func (*DataPoint) Point

func (_m *DataPoint) Point() predictor.Point

Point provides a mock function with given fields:

func (*DataPoint) Time

func (_m *DataPoint) Time() time.Time

Time provides a mock function with given fields:

type KNNAlg

type KNNAlg struct {
	mock.Mock
}

KNNAlg is an autogenerated mock type for the KNNAlg type

func (*KNNAlg) Append

func (_m *KNNAlg) Append(data ...predictor.DataPoint)

Append provides a mock function with given fields: data

func (*KNNAlg) Build

func (_m *KNNAlg) Build(data ...predictor.DataPoint)

Build provides a mock function with given fields: data

func (*KNNAlg) KNN

func (_m *KNNAlg) KNN(vec predictor.Point, k int) ([]predictor.Point, error)

KNN provides a mock function with given fields: vec, k

func (*KNNAlg) Len

func (_m *KNNAlg) Len() int

Len provides a mock function with given fields:

func (*KNNAlg) Reset

func (_m *KNNAlg) Reset()

Reset provides a mock function with given fields:

type Point

type Point struct {
	mock.Mock
}

Point is an autogenerated mock type for the Point type

func (*Point) Dim

func (_m *Point) Dim(idx int) float64

Dim provides a mock function with given fields: idx

func (*Point) Dimensions

func (_m *Point) Dimensions() int

Dimensions provides a mock function with given fields:

func (*Point) Points

func (_m *Point) Points() []float64

Points provides a mock function with given fields:

type Predictor

type Predictor struct {
	mock.Mock
}

Predictor is an autogenerated mock type for the Predictor type

func (*Predictor) Append

func (_m *Predictor) Append(data ...predictor.DataPoint)

Append provides a mock function with given fields: data

func (*Predictor) Build

func (_m *Predictor) Build(data ...predictor.DataPoint)

Build provides a mock function with given fields: data

func (*Predictor) Len

func (_m *Predictor) Len() int

Len provides a mock function with given fields:

func (*Predictor) Predict

func (_m *Predictor) Predict(vec predictor.Point) (*predictor.Conclusion, error)

Predict provides a mock function with given fields: vec

func (*Predictor) Reset

func (_m *Predictor) Reset()

Reset provides a mock function with given fields:

type ProvideFn

type ProvideFn struct {
	mock.Mock
}

ProvideFn is an autogenerated mock type for the ProvideFn type

func (*ProvideFn) Execute

func (_m *ProvideFn) Execute() (predictor.Predictor, error)

Execute provides a mock function with given fields:

Jump to

Keyboard shortcuts

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