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.
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 (*Result) AddDetectorResults ¶
func (r *Result) AddDetectorResults(detectorResult DetectorResult)
AddDetectorResults adds results for single detector.
Click to show internal directories.
Click to hide internal directories.