Last updated

API / geotoolkit / controls / util / regression / Exponential / Exponential

Class: Exponential

regression.Exponential.Exponential

generate a exponential regression model

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new Exponential(options)

new Exponential(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

RegressionBase.constructor

Methods

dispose

dispose(): void

Dispose.

Returns

void

Inherited from

RegressionBase.dispose


fit

fit(dataX, dataY, weights): void

fit curve

Parameters

Name Type Description
dataXnumber[]data array of observations x
dataYnumber[]data array in observations y
weightsnumber[]of data point

Returns

void

Overrides

RegressionBase.fit


getClassName

getClassName(): string

Returns

string

Inherited from

RegressionBase.getClassName


getCoefficients

getCoefficients(): number[]

get coefficients

Returns

number[]

Inherited from

RegressionBase.getCoefficients


getConfidenceInterval

getConfidenceInterval(x): number

get confidence interval for given x value

Parameters

Name Type Description
xnumbergiven value to determine the confidence interval

Returns

number

return confidence interval for x

Inherited from

RegressionBase.getConfidenceInterval


getConfidenceProbability

getConfidenceProbability(): Probability

get probability for determine confidence interval

Returns

Probability

probability

Inherited from

RegressionBase.getConfidenceProbability


getData

getData(): DataOut

get all data for training

Returns

DataOut

Inherited from

RegressionBase.getData


getDegreeOfFreedom

getDegreeOfFreedom(): number

get degree of freedom

Returns

number

return degree of freedom

Inherited from

RegressionBase.getDegreeOfFreedom


getEdge

getEdge(scale?): number

get x value of edge point where derivative of regression line is 1 or -1 after adjust scale of x and y

Parameters

Name Type Description
Optional scalenumberscale

Returns

number


getMean

getMean(axis): number

get mean value for data set x or y

Parameters

Name Type Description
axis"x" | "y"axis could be 'x' or 'y'

Returns

number

return mean value of data set

Inherited from

RegressionBase.getMean


getModelType

getModelType(): RegressionModelType

Returns regression model type

Returns

RegressionModelType

Model type

Overrides

RegressionBase.getModelType


getOptions

getOptions(): OptionsOut

get options

Returns

OptionsOut

options

Inherited from

RegressionBase.getOptions


getPredictionInterval

getPredictionInterval(x): number

get prediction interval for given x value

Parameters

Name Type Description
xnumbergiven value to determine the prediction interval

Returns

number

return prediction interval for x

Inherited from

RegressionBase.getPredictionInterval


getPredictionProbability

getPredictionProbability(): Probability

get probability for determine prediction interval

Returns

Probability

probability

Inherited from

RegressionBase.getPredictionProbability


getProperties

getProperties(): OptionsOut

get properties

Returns

OptionsOut

properties

Inherited from

RegressionBase.getProperties


getResiduals

getResiduals(): number[]

get array of residuals

Returns

number[]

residuals array of residuals

Inherited from

RegressionBase.getResiduals


getRsquared

getRsquared(): number

get R squared value

Returns

number

return R squared value

Inherited from

RegressionBase.getRsquared


getStatistics

getStatistics(): Statistics

get statistics of regression analysis

Returns

Statistics

Inherited from

RegressionBase.getStatistics


getSumSquaredResidual

getSumSquaredResidual(): number

get sum squared of residual

Returns

number

return sum squared of residual

Inherited from

RegressionBase.getSumSquaredResidual


getTotalSumSquared

getTotalSumSquared(axis): number

get sum squared for data set x or y

Parameters

Name Type Description
axis"x" | "y"axis could be 'x' or 'y'

Returns

number

return sum squared value of data set

Inherited from

RegressionBase.getTotalSumSquared


hasEventListener

hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

RegressionBase.hasEventListener


inversePredict

inversePredict(dataY): number

predict x value with given y value

Parameters

Name Type Description
dataYnumbersingle value y

Returns

number

predictedDataX predicted x value

Inherited from

RegressionBase.inversePredict

inversePredict(dataY): number[]

predict x values with given y value

Parameters

Name Type Description
dataYnumber[]data set of Y

Returns

number[]

predictedDataX predicted x values

Inherited from

RegressionBase.inversePredict


isCustomizedCoef

isCustomizedCoef(): boolean

get customized coefficients flag

Returns

boolean

customizedCoef

Inherited from

RegressionBase.isCustomizedCoef


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

RegressionBase.isDisposed


isSilent

isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

RegressionBase.isSilent


notify

notify<E>(type, source, args?): Exponential

Notify listeners

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEevent types
sourceRegressionBaseof the event
Optional argsEventMap[E]arguments of the event

Returns

Exponential

this

Inherited from

RegressionBase.notify


off

off<E>(type?, callback?): Exponential

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: Exponential, args: EventMap[E]) => voidfunction to be called

Returns

Exponential

this

Inherited from

RegressionBase.off


on

on<E>(type, callback): Exponential

Attach listener on event that will be called whenever the specified event is delivered to the target

If the callback function is already in the list of event listeners for this target, the function is not added a second time.

If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: Exponential, args: EventMap[E]) => voidto be called

Returns

Exponential

this

Inherited from

RegressionBase.on


predict

predict(dataX): number

predict y value with given x value

Parameters

Name Type Description
dataXnumbersingle value x

Returns

number

predictedDataY predicted y value

Inherited from

RegressionBase.predict

predict(dataX): number[]

predict y values with given x value

Parameters

Name Type Description
dataXnumber[]data set of X

Returns

number[]

predictedDataY predicted y values

Inherited from

RegressionBase.predict


resetModel

resetModel(): void

reset the model including all intermediate variables and training data

Returns

void

Inherited from

RegressionBase.resetModel


setConfidenceProbability

setConfidenceProbability(prob): Exponential

set probability for looking up t-table to determine confidence interval

Parameters

Name Type Description
probProbabilityprobability

Returns

Exponential

this

Inherited from

RegressionBase.setConfidenceProbability


setOptions

setOptions(options): Exponential

set options

Parameters

Name Type Description
optionsOptionsoptions

Returns

Exponential

this

Inherited from

RegressionBase.setOptions


setPredictionProbability

setPredictionProbability(prob): Exponential

set probability for looking up t-table to determine prediction interval

Parameters

Name Type Description
probProbabilityprobability

Returns

Exponential

this

Inherited from

RegressionBase.setPredictionProbability


setProperties

setProperties(properties?): Exponential

Sets properties

Parameters

Name Type Description
Optional propertiesOptionsoptions

Returns

Exponential

this

Inherited from

RegressionBase.setProperties


setSilent

setSilent(bool): Exponential

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

Exponential

this

Inherited from

RegressionBase.setSilent


getClassName

Static getClassName(): string

Returns

string

Inherited from

RegressionBase.getClassName