fr.cnes.genopus.nonWidget.vehicle.aeroCoeffs
Class CustomAeroCoeffByOneVarAbstract

java.lang.Object
  extended by fr.cnes.genopus.nonWidget.vehicle.aeroCoeffs.CustomAeroCoeffByOneVarAbstract
All Implemented Interfaces:
Serializable, org.orekit.parameter.IParamDiffFunction, org.orekit.parameter.IParameterizable, org.orekit.parameter.IParameterizableFunction
Direct Known Subclasses:
CustomAeroCoeffByAltitude, CustomAeroCoeffByAoA, CustomAeroCoeffByMach

public abstract class CustomAeroCoeffByOneVarAbstract
extends Object
implements org.orekit.parameter.IParamDiffFunction

Defines a function with one variable from an array of x and y values.

Author:
ffsm
See Also:
Serialized Form

Constructor Summary
protected CustomAeroCoeffByOneVarAbstract(Double[] xVariable, Double[] yVariable)
          Creates a new instance entering the x and y variables as doubles.
 
Method Summary
protected abstract  double computeXVariable(org.orekit.propagation.SpacecraftState state)
          Computes the x variable from the spacecraft state.
 double derivativeValue(org.orekit.parameter.Parameter p, org.orekit.propagation.SpacecraftState s)
          
static double[] extendedVectorY(Double[] numbers)
          Takes an array of numbers and extends it by adding the first value at the left side of the array and the last number at the right side.
 org.apache.commons.math3.analysis.interpolation.UniLinearIntervalsFunction getFunction()
          Getter for the function.
 ArrayList<org.orekit.parameter.Parameter> getParameters()
          
 Double[] getXArray()
          Getter for the x variable array of values used for the function definition.
 Double[] getYArray()
          Getter for the y variable array of values used for the function definition.
 boolean isDifferentiableBy(org.orekit.parameter.Parameter p)
          
 boolean supportsParameter(org.orekit.parameter.Parameter param)
          
 String toString()
          
 double value(org.orekit.propagation.SpacecraftState state)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomAeroCoeffByOneVarAbstract

protected CustomAeroCoeffByOneVarAbstract(Double[] xVariable,
                                          Double[] yVariable)
Creates a new instance entering the x and y variables as doubles.

Parameters:
xVariable - array of x variables
yVariable - array of y variables
Method Detail

value

public double value(org.orekit.propagation.SpacecraftState state)

Specified by:
value in interface org.orekit.parameter.IParameterizableFunction

computeXVariable

protected abstract double computeXVariable(org.orekit.propagation.SpacecraftState state)
                                    throws NonWidgetException
Computes the x variable from the spacecraft state.

Parameters:
state - the spacecraft state
Returns:
the x variable
Throws:
NonWidgetException - if there is a problem computing x from state.

getParameters

public ArrayList<org.orekit.parameter.Parameter> getParameters()

Specified by:
getParameters in interface org.orekit.parameter.IParameterizable

supportsParameter

public boolean supportsParameter(org.orekit.parameter.Parameter param)

Specified by:
supportsParameter in interface org.orekit.parameter.IParameterizable

derivativeValue

public double derivativeValue(org.orekit.parameter.Parameter p,
                              org.orekit.propagation.SpacecraftState s)

Specified by:
derivativeValue in interface org.orekit.parameter.IParamDiffFunction

isDifferentiableBy

public boolean isDifferentiableBy(org.orekit.parameter.Parameter p)

Specified by:
isDifferentiableBy in interface org.orekit.parameter.IParamDiffFunction

getXArray

public Double[] getXArray()
Getter for the x variable array of values used for the function definition.

Returns:
the x variable array of values

getYArray

public Double[] getYArray()
Getter for the y variable array of values used for the function definition.

Returns:
the y variable array of values

getFunction

public org.apache.commons.math3.analysis.interpolation.UniLinearIntervalsFunction getFunction()
Getter for the function.

Returns:
the function

extendedVectorY

public static double[] extendedVectorY(Double[] numbers)
Takes an array of numbers and extends it by adding the first value at the left side of the array and the last number at the right side.

Parameters:
numbers - the array of numbers to extend
Returns:
the extended vector

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2017. All rights reserved.