Last updated

API / geotoolkit / controls / shapes / RegressionLine / RegressionLine

Namespace: RegressionLine

shapes.RegressionLine.RegressionLine

Table of contents

Type Aliases

Contents

Type Aliases

DataOptions

Ƭ DataOptions: Object

data

Type declaration

NameTypeDescription
datax?number[] | INumericalDataSeriesdata source for x
datay?number[] | INumericalDataSeriesdata source for y
weights?number[] | INumericalDataSeriesweights of data point

LabelOptions

Ƭ LabelOptions: Object

Regression line label options

Type declaration

NameTypeDescription
anchortype?AnchorTypeLabel anchor type
fillstyle?TypeLabel fill style
linestyle?TypeLabel border line style
location?numberThe distance of the label in the range of [0, 1] 0 is the start point of the line, from the left end 1 is the end point of the line, the right end
offset?numberOffset of label in device space with the line
text?stringLabel text
textstyle?TypeLabel text style
visible?booleanLabel visibility

LineOptions

Ƭ LineOptions: Object

options for setting line

Type declaration

NameTypeDescription
label?LabelOptionsRegression line label options
linestyle?Typeset line style of this type of line
visible?booleanset visibility of this type of line

LineOptionsOut

Ƭ LineOptionsOut: Object

options for setting line

Type declaration

NameTypeDescription
label?LabelOptionsRegression line label options
linestyle?LineStyleset line style of this type of line
visible?booleanset visibility of this type of line

LineType

Ƭ LineType: "regression" | "confidence" | "prediction"

Line type


LineTypeExtended

Ƭ LineTypeExtended: "regression" | "confidenceupper" | "confidencelower" | "predictionupper" | "predictionlower"

Extended line type


Options

Ƭ Options: Options & OptionsBase & DataOptions


OptionsBase

Ƭ OptionsBase: Object

options

Type declaration

NameTypeDescription
autolimits?booleanenable auto calculate model limits base on lines geometry Deprecated since 4.1. Setting is not used anymore.
confidenceline?ProbabilityLineOptionsoptions for confidence line
databounds?RectRegression line data bounds to limit regression line and its confident/prediction lines within a specific bounds in model space
extended?booleanthe flag if extend x limits of curve to the limits of shape's model limits
horizontallogmode?booleanLog mode in horizontal direction
infinity?booleaninfinity mode flag to draw regression line outside the model limits
plotinterval?numberthe interval of sampling x when drawing curve
predictionline?ProbabilityLineOptionsoptions for prediction line
regressionline?LineOptionsoptions for regression line
regressionmodel?Options & { order?: number ; type?: RegressionBase | PredictFunction | typeof RegressionBase }options for regression model
residualline?ResidualLineResidual line setting for the line connecting data point with regression line
verticallogmode?booleanLog mode in vertical direction

OptionsBaseOut

Ƭ OptionsBaseOut: Object

Type declaration

NameTypeDescription
autolimitsbooleanDeprecated since 4.1
confidencelineProbabilityLineOptions-
databoundsRect-
extendedboolean-
horizontallogmodeboolean-
infinityboolean-
plotintervalnumber-
predictionlineProbabilityLineOptions-
regressionlineLineOptionsOut-
regressionmodelOptionsOut & { type: RegressionBase }-
residuallineResidualLineOut-
verticallogmodeboolean-

OptionsOut

Ƭ OptionsOut: OptionsOut & OptionsBaseOut & DataOptions

properties


ProbabilityLabelOptions

Ƭ ProbabilityLabelOptions: Object

Probability line label options for confidence or prediction line

Type declaration

NameTypeDescription
lower?LabelOptionsProbability line lower label options
upper?LabelOptionsProbability line upper label options

ProbabilityLineOptions

Ƭ ProbabilityLineOptions: Omit<LineOptions, "label"> & { custompredict?: { lower?: PredictFunction ; upper?: PredictFunction } ; fillstyle?: Type ; label?: ProbabilityLabelOptions ; probability?: Probability }

options


ProbabilityLineOptionsOut

Ƭ ProbabilityLineOptionsOut: Omit<LineOptions, "label"> & { custompredict?: { lower?: PredictFunction ; upper?: PredictFunction } ; fillstyle?: FillStyle ; label?: ProbabilityLabelOptions ; probability?: Probability }

options


ResidualLine

Ƭ ResidualLine: Object

Residual line setting for the line connecting data point with regression line

Type declaration

NameTypeDescription
linestyle?TypeResidual line line style
margin?{ end?: number ; start?: number }Margin of residual line from the data point and from regression line
margin.end?numberMargin of residual line from the regression line
margin.start?numberMargin of residual line from the data point
mode?ResidualLineModeResidual line mode
visible?booleanWhether residual lines should be visible

ResidualLineOut

Ƭ ResidualLineOut: Object

Residual line setting for the line connecting data point with regression line

Type declaration

NameTypeDescription
linestyle?LineStyleResidual line line style
margin?{ end?: number ; start?: number }Margin of residual line from the data point and from regression line
margin.end?numberMargin of residual line from the regression line
margin.start?numberMargin of residual line from the data point
mode?ResidualLineModeResidual line mode
visible?booleanWhether residual lines should be visible