result

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: GPL-3.0, GPL-3.0-or-later Imports: 1 Imported by: 2

Documentation

Overview

Package result implement result.result, which contains simulation results data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetectorResult

type DetectorResult struct {
	DetectorID       detector.ID       `json:"detectorId"`
	Errors           map[string]string `json:"errors"`
	DetectorMetadata map[string]string `json:"metadata"`
	Data             [][][]float64     `json:"scored"`
	Dimensions       Dimensions        `json:"dimensions"`
}

DetectorResult contains simulation result data for single detector.

func NewDetectorResult

func NewDetectorResult() DetectorResult

NewDetectorResult constructor.

type Dimensions

type Dimensions struct {
	NumberOfDimensions int64  `json:"numberOfDimensions"`
	SegmentsInDim1     int64  `json:"segmentsInDim1"`
	SegmentsInDim2     int64  `json:"segmentsInDim2"`
	SegmentsInDim3     int64  `json:"segmentsInDim3"`
	CoordinatesType    string `json:"coordinatesType"`
}

Dimensions contains data about dimesnions of scored results.

type Result

type Result struct {
	Errors    map[string]string `json:"errors"`
	Metadata  map[string]string `json:"result_metadata"`
	Detectors []DetectorResult  `json:"detectors"`
}

Result contains all simulation result data.

func NewEmptyResult

func NewEmptyResult() Result

NewEmptyResult constructor.

func (*Result) AddDetectorResults

func (r *Result) AddDetectorResults(detectorResult DetectorResult)

AddDetectorResults adds results for single detector.

Jump to

Keyboard shortcuts

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