Uses of Class
com.opengamma.strata.collect.array.DoubleArray
-
-
Uses of DoubleArray in com.opengamma.strata.basics.currency
Methods in com.opengamma.strata.basics.currency that return DoubleArray Modifier and Type Method Description DoubleArrayCurrencyAmountArray. getValues()Gets the values.DoubleArrayMultiCurrencyAmountArray. getValues(Currency currency)Gets the values for the specified currency, throws an exception if there are no values for the currency.Methods in com.opengamma.strata.basics.currency that return types with arguments of type DoubleArray Modifier and Type Method Description ImmutableSortedMap<Currency,DoubleArray>MultiCurrencyAmountArray. getValues()Gets the currency values, keyed by currency.org.joda.beans.MetaProperty<DoubleArray>CurrencyAmountArray.Meta. values()The meta-property for thevaluesproperty.org.joda.beans.MetaProperty<ImmutableSortedMap<Currency,DoubleArray>>MultiCurrencyAmountArray.Meta. values()The meta-property for thevaluesproperty.Methods in com.opengamma.strata.basics.currency with parameters of type DoubleArray Modifier and Type Method Description static CurrencyAmountArrayCurrencyAmountArray. of(Currency currency, DoubleArray values)Obtains an instance from the specified currency and array of values.Method parameters in com.opengamma.strata.basics.currency with type arguments of type DoubleArray Modifier and Type Method Description static MultiCurrencyAmountArrayMultiCurrencyAmountArray. of(Map<Currency,DoubleArray> values)Obtains an instance from a map of amounts. -
Uses of DoubleArray in com.opengamma.strata.basics.value
Methods in com.opengamma.strata.basics.value that return DoubleArray Modifier and Type Method Description DoubleArrayValueDerivatives. getDerivatives()Gets the derivatives of the variable with respect to some inputs.DoubleArrayValueSchedule. resolveValues(Schedule schedule)Resolves the value and adjustments against a specific schedule.Methods in com.opengamma.strata.basics.value with parameters of type DoubleArray Modifier and Type Method Description static ValueDerivativesValueDerivatives. of(double value, DoubleArray derivatives)Obtains an instance from a value and array of derivatives. -
Uses of DoubleArray in com.opengamma.strata.collect.array
Fields in com.opengamma.strata.collect.array declared as DoubleArray Modifier and Type Field Description static DoubleArrayDoubleArray. EMPTYAn empty array.Methods in com.opengamma.strata.collect.array that return DoubleArray Modifier and Type Method Description DoubleArrayDoubleMatrix. column(int column)Gets the column at the specified index.DoubleArrayDoubleArray. combine(DoubleArray other, DoubleBinaryOperator operator)Returns an instance where each element is formed by some combination of the matching values in this array and the other array.DoubleArrayDoubleArray. concat(double... arrayToConcat)Returns an array that combines this array and the specified array.DoubleArrayDoubleArray. concat(DoubleArray arrayToConcat)Returns an array that combines this array and the specified array.static DoubleArrayDoubleArray. copyOf(double[] array)Obtains an instance from an array ofdouble.static DoubleArrayDoubleArray. copyOf(double[] array, int fromIndex)Obtains an instance by copying part of an array.static DoubleArrayDoubleArray. copyOf(double[] array, int fromIndexInclusive, int toIndexExclusive)Obtains an instance by copying part of an array.static DoubleArrayDoubleArray. copyOf(Collection<Double> collection)Obtains an instance from a collection ofDouble.DoubleArrayDoubleArray. dividedBy(double divisor)Returns an instance with each value divided by the specified divisor.DoubleArrayDoubleArray. dividedBy(DoubleArray other)Returns an instance where each element is calculated by dividing values in this array by values in the other array.static DoubleArrayDoubleArray. filled(int size)Obtains an instance with all entries equal to the zero.static DoubleArrayDoubleArray. filled(int size, double value)Obtains an instance with all entries equal to the same value.DoubleArrayDoubleArray. map(DoubleUnaryOperator operator)Returns an instance with an operation applied to each value in the array.DoubleArrayDoubleArray. mapWithIndex(IntDoubleToDoubleFunction function)Returns an instance with an operation applied to each indexed value in the array.DoubleArrayDoubleArray. minus(double amount)Returns an instance with the specified amount subtracted from each value.DoubleArrayDoubleArray. minus(DoubleArray other)Returns an instance where each element is equal to the difference between the matching values in this array and the other array.DoubleArrayDoubleArray. multipliedBy(double factor)Returns an instance with each value multiplied by the specified factor.DoubleArrayDoubleArray. multipliedBy(DoubleArray other)Returns an instance where each element is equal to the product of the matching values in this array and the other array.static DoubleArrayDoubleArray. of()Obtains an empty immutable array.static DoubleArrayDoubleArray. of(double value)Obtains an immutable array with a single value.static DoubleArrayDoubleArray. of(double value1, double value2)Obtains an immutable array with two values.static DoubleArrayDoubleArray. of(double value1, double value2, double value3)Obtains an immutable array with three values.static DoubleArrayDoubleArray. of(double value1, double value2, double value3, double value4)Obtains an immutable array with four values.static DoubleArrayDoubleArray. of(double value1, double value2, double value3, double value4, double value5)Obtains an immutable array with five values.static DoubleArrayDoubleArray. of(double value1, double value2, double value3, double value4, double value5, double value6)Obtains an immutable array with six values.static DoubleArrayDoubleArray. of(double value1, double value2, double value3, double value4, double value5, double value6, double value7)Obtains an immutable array with seven values.static DoubleArrayDoubleArray. of(double value1, double value2, double value3, double value4, double value5, double value6, double value7, double value8)Obtains an immutable array with eight values.static DoubleArrayDoubleArray. of(double value1, double value2, double value3, double value4, double value5, double value6, double value7, double value8, double... otherValues)Obtains an immutable array with more than eight values.static DoubleArrayDoubleArray. of(int size, IntToDoubleFunction valueFunction)Obtains an instance with entries filled using a function.static DoubleArrayDoubleArray. of(DoubleStream stream)Obtains an instance with entries filled from a stream.static DoubleArrayDoubleArray. ofUnsafe(double[] array)Obtains an instance by wrapping an array.DoubleArrayDoubleArray. plus(double amount)Returns an instance with the specified amount added to each value.DoubleArrayDoubleArray. plus(DoubleArray other)Returns an instance where each element is the sum of the matching values in this array and the other array.DoubleArrayDoubleMatrix. row(int row)Gets the row at the specified index.DoubleArrayDoubleArray. sorted()Returns a sorted copy of this array.DoubleArrayDoubleArray. subArray(int fromIndexInclusive)Returns an array holding the values from the specified index onwards.DoubleArrayDoubleArray. subArray(int fromIndexInclusive, int toIndexExclusive)Returns an array holding the values between the specified from and to indices.DoubleArrayDoubleArray. with(int index, double newValue)Returns an instance with the value at the specified index changed.Methods in com.opengamma.strata.collect.array with parameters of type DoubleArray Modifier and Type Method Description DoubleArrayDoubleArray. combine(DoubleArray other, DoubleBinaryOperator operator)Returns an instance where each element is formed by some combination of the matching values in this array and the other array.doubleDoubleArray. combineReduce(DoubleArray other, DoubleTernaryOperator operator)Combines this array and the other array returning a reduced value.DoubleArrayDoubleArray. concat(DoubleArray arrayToConcat)Returns an array that combines this array and the specified array.static DoubleMatrixDoubleMatrix. diagonal(DoubleArray array)Obtains a diagonal matrix from the specified array.DoubleArrayDoubleArray. dividedBy(DoubleArray other)Returns an instance where each element is calculated by dividing values in this array by values in the other array.booleanDoubleArray. equalWithTolerance(DoubleArray other, double tolerance)Checks if this array equals another within the specified tolerance.DoubleArrayDoubleArray. minus(DoubleArray other)Returns an instance where each element is equal to the difference between the matching values in this array and the other array.DoubleArrayDoubleArray. multipliedBy(DoubleArray other)Returns an instance where each element is equal to the product of the matching values in this array and the other array.DoubleArrayDoubleArray. plus(DoubleArray other)Returns an instance where each element is the sum of the matching values in this array and the other array.Method parameters in com.opengamma.strata.collect.array with type arguments of type DoubleArray Modifier and Type Method Description static DoubleMatrixDoubleMatrix. ofArrayObjects(int rows, int columns, IntFunction<DoubleArray> valuesFunction)Obtains an instance with entries filled using a function. -
Uses of DoubleArray in com.opengamma.strata.data.scenario
Methods in com.opengamma.strata.data.scenario that return DoubleArray Modifier and Type Method Description DoubleArrayFxRateScenarioArray. convert(DoubleArray amounts, Currency fromCurrency, Currency toCurrency)Converts an amount in a currency to an amount in a different currency using this rate.DoubleArrayDoubleScenarioArray. getValues()Gets the calculated values, one per scenario.DoubleArrayMultiCurrencyScenarioArray. getValues(Currency currency)Returns the values for the specified currency, throws an exception if there are no values for the currency.Methods in com.opengamma.strata.data.scenario that return types with arguments of type DoubleArray Modifier and Type Method Description org.joda.beans.MetaProperty<DoubleArray>FxRateScenarioArray.Meta. rates()The meta-property for theratesproperty.org.joda.beans.MetaProperty<DoubleArray>DoubleScenarioArray.Meta. values()The meta-property for thevaluesproperty.Methods in com.opengamma.strata.data.scenario with parameters of type DoubleArray Modifier and Type Method Description DoubleArrayFxRateScenarioArray. convert(DoubleArray amounts, Currency fromCurrency, Currency toCurrency)Converts an amount in a currency to an amount in a different currency using this rate.static CurrencyScenarioArrayCurrencyScenarioArray. of(Currency currency, DoubleArray values)Obtains an instance from the specified currency and array of values.static DoubleScenarioArrayDoubleScenarioArray. of(DoubleArray values)Obtains an instance from the specified array of values.static FxRateScenarioArrayFxRateScenarioArray. of(CurrencyPair currencyPair, DoubleArray rates)Returns an array of FX rates for a currency pair.static FxRateScenarioArrayFxRateScenarioArray. of(Currency base, Currency counter, DoubleArray rates)Returns an array of FX rates for a currency pair.Method parameters in com.opengamma.strata.data.scenario with type arguments of type DoubleArray Modifier and Type Method Description static MultiCurrencyScenarioArrayMultiCurrencyScenarioArray. of(Map<Currency,DoubleArray> values)Returns an instance containing the values from a map of amounts with the same number of elements in each array. -
Uses of DoubleArray in com.opengamma.strata.market
Methods in com.opengamma.strata.market that return DoubleArray Modifier and Type Method Description DoubleArrayFxRateShifts. getShiftAmount()Gets the shifts to apply toFxRate.DoubleArrayGenericDoubleShifts. getShiftAmount()Gets the shifts to apply to aDoublevalue.Methods in com.opengamma.strata.market that return types with arguments of type DoubleArray Modifier and Type Method Description org.joda.beans.MetaProperty<DoubleArray>FxRateShifts.Meta. shiftAmount()The meta-property for theshiftAmountproperty.org.joda.beans.MetaProperty<DoubleArray>GenericDoubleShifts.Meta. shiftAmount()The meta-property for theshiftAmountproperty.Methods in com.opengamma.strata.market with parameters of type DoubleArray Modifier and Type Method Description static FxRateShiftsFxRateShifts. of(ShiftType shiftType, DoubleArray shiftAmount, CurrencyPair currencyPair)Creates an instance.static GenericDoubleShiftsGenericDoubleShifts. of(ShiftType shiftType, DoubleArray shiftAmount)Creates an instance with zero spread.static GenericDoubleShiftsGenericDoubleShifts. of(ShiftType shiftType, DoubleArray shiftAmount, double spread)Creates an instance with spread. -
Uses of DoubleArray in com.opengamma.strata.market.curve
Fields in com.opengamma.strata.market.curve with type parameters of type DoubleArray Modifier and Type Field Description static CurveInfoType<DoubleArray>CurveInfoType. PV_SENSITIVITY_TO_MARKET_QUOTEKey used to access information about the present value sensitivity to market quote, represented by aDoubleArray.Methods in com.opengamma.strata.market.curve that return DoubleArray Modifier and Type Method Description DoubleArrayParameterizedFunctionalCurve. getParameters()Gets the array of parameters for the curve function.DoubleArrayInflationNodalCurve. getSeasonality()Gets describes the monthly seasonal adjustments.DoubleArraySeasonalityDefinition. getSeasonalityMonthOnMonth()Gets the month on month adjustment.DoubleArrayCurveParallelShifts. getShiftAmounts()Gets the amount by which the y-values are shifted.DoubleArrayConstantNodalCurve. getXValues()DoubleArrayHybridNodalCurve. getXValues()DoubleArrayInflationNodalCurve. getXValues()DoubleArrayInterpolatedNodalCurve. getXValues()Gets the array of x-values, one for each point.DoubleArrayNodalCurve. getXValues()Gets the known x-values of the curve.DoubleArrayConstantNodalCurve. getYValues()DoubleArrayHybridNodalCurve. getYValues()DoubleArrayInflationNodalCurve. getYValues()DoubleArrayInterpolatedNodalCurve. getYValues()Gets the array of y-values, one for each point.DoubleArrayNodalCurve. getYValues()Gets the known y-values of the curve.Methods in com.opengamma.strata.market.curve that return types with arguments of type DoubleArray Modifier and Type Method Description org.joda.beans.MetaProperty<BiFunction<DoubleArray,Double,Double>>ParameterizedFunctionalCurve.Meta. derivativeFunction()The meta-property for thederivativeFunctionproperty.org.joda.beans.MetaProperty<BiFunction<DoubleArray,Double,Double>>ParameterizedFunctionalCurveDefinition.Meta. derivativeFunction()The meta-property for thederivativeFunctionproperty.BiFunction<DoubleArray,Double,Double>ParameterizedFunctionalCurve. getDerivativeFunction()Gets the derivative function.BiFunction<DoubleArray,Double,Double>ParameterizedFunctionalCurveDefinition. getDerivativeFunction()Gets the derivative function.BiFunction<DoubleArray,Double,DoubleArray>ParameterizedFunctionalCurve. getSensitivityFunction()Gets the parameter sensitivity function.BiFunction<DoubleArray,Double,DoubleArray>ParameterizedFunctionalCurve. getSensitivityFunction()Gets the parameter sensitivity function.BiFunction<DoubleArray,Double,DoubleArray>ParameterizedFunctionalCurveDefinition. getSensitivityFunction()Gets the parameter sensitivity function.BiFunction<DoubleArray,Double,DoubleArray>ParameterizedFunctionalCurveDefinition. getSensitivityFunction()Gets the parameter sensitivity function.BiFunction<DoubleArray,Double,Double>ParameterizedFunctionalCurve. getValueFunction()Gets the y-value function.BiFunction<DoubleArray,Double,Double>ParameterizedFunctionalCurveDefinition. getValueFunction()Gets the y-value function.org.joda.beans.MetaProperty<DoubleArray>ParameterizedFunctionalCurve.Meta. parameters()The meta-property for theparametersproperty.org.joda.beans.MetaProperty<DoubleArray>InflationNodalCurve.Meta. seasonality()The meta-property for theseasonalityproperty.org.joda.beans.MetaProperty<DoubleArray>SeasonalityDefinition.Meta. seasonalityMonthOnMonth()The meta-property for theseasonalityMonthOnMonthproperty.org.joda.beans.MetaProperty<BiFunction<DoubleArray,Double,DoubleArray>>ParameterizedFunctionalCurve.Meta. sensitivityFunction()The meta-property for thesensitivityFunctionproperty.org.joda.beans.MetaProperty<BiFunction<DoubleArray,Double,DoubleArray>>ParameterizedFunctionalCurve.Meta. sensitivityFunction()The meta-property for thesensitivityFunctionproperty.org.joda.beans.MetaProperty<BiFunction<DoubleArray,Double,DoubleArray>>ParameterizedFunctionalCurveDefinition.Meta. sensitivityFunction()The meta-property for thesensitivityFunctionproperty.org.joda.beans.MetaProperty<BiFunction<DoubleArray,Double,DoubleArray>>ParameterizedFunctionalCurveDefinition.Meta. sensitivityFunction()The meta-property for thesensitivityFunctionproperty.org.joda.beans.MetaProperty<DoubleArray>CurveParallelShifts.Meta. shiftAmounts()The meta-property for theshiftAmountsproperty.Map<CurveName,DoubleArray>JacobianCalibrationMatrix. splitValues(DoubleArray array)Splits the array according to the curve order.org.joda.beans.MetaProperty<BiFunction<DoubleArray,Double,Double>>ParameterizedFunctionalCurve.Meta. valueFunction()The meta-property for thevalueFunctionproperty.org.joda.beans.MetaProperty<BiFunction<DoubleArray,Double,Double>>ParameterizedFunctionalCurveDefinition.Meta. valueFunction()The meta-property for thevalueFunctionproperty.org.joda.beans.MetaProperty<DoubleArray>InterpolatedNodalCurve.Meta. xValues()The meta-property for thexValuesproperty.org.joda.beans.MetaProperty<DoubleArray>InterpolatedNodalCurve.Meta. yValues()The meta-property for theyValuesproperty.Methods in com.opengamma.strata.market.curve with parameters of type DoubleArray Modifier and Type Method Description CurrencyParameterSensitivityCombinedCurve. createParameterSensitivity(Currency currency, DoubleArray sensitivities)UnitParameterSensitivityCombinedCurve. createParameterSensitivity(DoubleArray sensitivities)CurrencyParameterSensitivityConstantNodalCurve. createParameterSensitivity(Currency currency, DoubleArray sensitivities)UnitParameterSensitivityConstantNodalCurve. createParameterSensitivity(DoubleArray sensitivities)default CurrencyParameterSensitivityCurve. createParameterSensitivity(Currency currency, DoubleArray sensitivities)Creates a parameter sensitivity instance for this curve when the sensitivity values are known.default UnitParameterSensitivityCurve. createParameterSensitivity(DoubleArray sensitivities)Creates a parameter sensitivity instance for this curve when the sensitivity values are known.CurrencyParameterSensitivityHybridNodalCurve. createParameterSensitivity(Currency currency, DoubleArray sensitivities)UnitParameterSensitivityHybridNodalCurve. createParameterSensitivity(DoubleArray sensitivities)CurrencyParameterSensitivityInterpolatedNodalCurve. createParameterSensitivity(Currency currency, DoubleArray sensitivities)UnitParameterSensitivityInterpolatedNodalCurve. createParameterSensitivity(DoubleArray sensitivities)CurrencyParameterSensitivityParameterizedFunctionalCurve. createParameterSensitivity(Currency currency, DoubleArray sensitivities)UnitParameterSensitivityParameterizedFunctionalCurve. createParameterSensitivity(DoubleArray sensitivities)CurveCurveDefinition. curve(LocalDate valuationDate, CurveMetadata metadata, DoubleArray parameters)Creates the curve from an array of parameter values.NodalCurveInterpolatedNodalCurveDefinition. curve(LocalDate valuationDate, CurveMetadata metadata, DoubleArray parameters)InterpolatedNodalCurveIsdaCreditCurveDefinition. curve(DoubleArray yearFractions, DoubleArray zeroRates)Creates the ISDA compliant curve.NodalCurveNodalCurveDefinition. curve(LocalDate valuationDate, CurveMetadata metadata, DoubleArray parameters)ParameterizedFunctionalCurveParameterizedFunctionalCurveDefinition. curve(LocalDate valuationDate, CurveMetadata metadata, DoubleArray parameters)static HybridNodalCurveHybridNodalCurve. of(CurveMetadata metadata, DoubleArray xValues, DoubleArray yValues, int spliceIndex, CurveInterpolator interpolatorLeft, CurveInterpolator interpolatorRight, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight)Create a new hybrid nodal curve.static InflationNodalCurveInflationNodalCurve. of(NodalCurve curve, DoubleArray seasonality, ShiftType adjustmentType)Obtains an instance of the curve.static InterpolatedNodalCurveInterpolatedNodalCurve. of(CurveMetadata metadata, DoubleArray xValues, DoubleArray yValues, CurveInterpolator interpolator)Creates an interpolated curve with metadata.static InterpolatedNodalCurveInterpolatedNodalCurve. of(CurveMetadata metadata, DoubleArray xValues, DoubleArray yValues, CurveInterpolator interpolator, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight)Creates an interpolated curve with metadata.static ParameterizedFunctionalCurveParameterizedFunctionalCurve. of(CurveMetadata metadata, DoubleArray parameters, BiFunction<DoubleArray,Double,Double> valueFunction, BiFunction<DoubleArray,Double,Double> derivativeFunction, BiFunction<DoubleArray,Double,DoubleArray> sensitivityFunction)Obtains an instance.static SeasonalityDefinitionSeasonalityDefinition. of(DoubleArray seasonalityMonthOnMonth, ShiftType adjustmentType)Obtains an instance of the seasonality.ParameterizedFunctionalCurve.BuilderParameterizedFunctionalCurve.Builder. parameters(DoubleArray parameters)Sets the array of parameters for the curve function.Map<CurveName,DoubleArray>JacobianCalibrationMatrix. splitValues(DoubleArray array)Splits the array according to the curve order.ParameterizedFunctionalCurveParameterizedFunctionalCurve. withParameters(DoubleArray parameters)Returns a copy of the curve with all of the parameters altered.ConstantNodalCurveConstantNodalCurve. withValues(DoubleArray xValues, DoubleArray yValues)HybridNodalCurveHybridNodalCurve. withValues(DoubleArray xValues, DoubleArray yValues)InflationNodalCurveInflationNodalCurve. withValues(DoubleArray xValues, DoubleArray yValues)InterpolatedNodalCurveInterpolatedNodalCurve. withValues(DoubleArray xValues, DoubleArray yValues)NodalCurveNodalCurve. withValues(DoubleArray xValues, DoubleArray yValues)Returns a new curve with the specified x-values and y-values.ConstantNodalCurveConstantNodalCurve. withYValues(DoubleArray yValues)HybridNodalCurveHybridNodalCurve. withYValues(DoubleArray yValues)InflationNodalCurveInflationNodalCurve. withYValues(DoubleArray values)InterpolatedNodalCurveInterpolatedNodalCurve. withYValues(DoubleArray yValues)NodalCurveNodalCurve. withYValues(DoubleArray values)Returns a new curve with the specified values.InterpolatedNodalCurve.BuilderInterpolatedNodalCurve.Builder. xValues(DoubleArray xValues)Sets the array of x-values, one for each point.InterpolatedNodalCurve.BuilderInterpolatedNodalCurve.Builder. yValues(DoubleArray yValues)Sets the array of y-values, one for each point.Method parameters in com.opengamma.strata.market.curve with type arguments of type DoubleArray Modifier and Type Method Description ParameterizedFunctionalCurve.BuilderParameterizedFunctionalCurve.Builder. derivativeFunction(BiFunction<DoubleArray,Double,Double> derivativeFunction)Sets the derivative function.ParameterizedFunctionalCurveDefinition.BuilderParameterizedFunctionalCurveDefinition.Builder. derivativeFunction(BiFunction<DoubleArray,Double,Double> derivativeFunction)Sets the derivative function.static ParameterizedFunctionalCurveParameterizedFunctionalCurve. of(CurveMetadata metadata, DoubleArray parameters, BiFunction<DoubleArray,Double,Double> valueFunction, BiFunction<DoubleArray,Double,Double> derivativeFunction, BiFunction<DoubleArray,Double,DoubleArray> sensitivityFunction)Obtains an instance.ParameterizedFunctionalCurve.BuilderParameterizedFunctionalCurve.Builder. sensitivityFunction(BiFunction<DoubleArray,Double,DoubleArray> sensitivityFunction)Sets the parameter sensitivity function.ParameterizedFunctionalCurve.BuilderParameterizedFunctionalCurve.Builder. sensitivityFunction(BiFunction<DoubleArray,Double,DoubleArray> sensitivityFunction)Sets the parameter sensitivity function.ParameterizedFunctionalCurveDefinition.BuilderParameterizedFunctionalCurveDefinition.Builder. sensitivityFunction(BiFunction<DoubleArray,Double,DoubleArray> sensitivityFunction)Sets the parameter sensitivity function.ParameterizedFunctionalCurveDefinition.BuilderParameterizedFunctionalCurveDefinition.Builder. sensitivityFunction(BiFunction<DoubleArray,Double,DoubleArray> sensitivityFunction)Sets the parameter sensitivity function.ParameterizedFunctionalCurve.BuilderParameterizedFunctionalCurve.Builder. valueFunction(BiFunction<DoubleArray,Double,Double> valueFunction)Sets the y-value function.ParameterizedFunctionalCurveDefinition.BuilderParameterizedFunctionalCurveDefinition.Builder. valueFunction(BiFunction<DoubleArray,Double,Double> valueFunction)Sets the y-value function. -
Uses of DoubleArray in com.opengamma.strata.market.curve.interpolator
Methods in com.opengamma.strata.market.curve.interpolator that return DoubleArray Modifier and Type Method Description protected abstract DoubleArrayAbstractBoundCurveInterpolator. doParameterSensitivity(double xValue)Method for subclasses to calculate parameter sensitivity.DoubleArrayBoundCurveExtrapolator. leftExtrapolateParameterSensitivity(double xValue)Calculates the parameter sensitivities of the left extrapolated y-value at the specified x-value.DoubleArrayAbstractBoundCurveInterpolator. parameterSensitivity(double xValue)DoubleArrayBoundCurveInterpolator. parameterSensitivity(double x)Computes the sensitivity of the y-value with respect to the curve parameters.DoubleArrayBoundCurveExtrapolator. rightExtrapolateParameterSensitivity(double xValue)Calculates the parameter sensitivities of the right extrapolated y-value at the specified x-value.Methods in com.opengamma.strata.market.curve.interpolator with parameters of type DoubleArray Modifier and Type Method Description BoundCurveExtrapolatorCurveExtrapolator. bind(DoubleArray xValues, DoubleArray yValues, BoundCurveInterpolator interpolator)Binds this extrapolator to a curve.BoundCurveInterpolatorCurveInterpolator. bind(DoubleArray xValues, DoubleArray yValues)Binds this interpolator to a curve where no extrapolation is permitted.default BoundCurveInterpolatorCurveInterpolator. bind(DoubleArray xValues, DoubleArray yValues, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight)Binds this interpolator to a curve specifying the extrapolators to use.Constructors in com.opengamma.strata.market.curve.interpolator with parameters of type DoubleArray Constructor Description AbstractBoundCurveInterpolator(DoubleArray xValues, DoubleArray yValues)Creates an instance. -
Uses of DoubleArray in com.opengamma.strata.market.observable
Methods in com.opengamma.strata.market.observable that return DoubleArray Modifier and Type Method Description DoubleArrayQuoteScenarioArray. getQuotes()Gets the values of the quotes.Methods in com.opengamma.strata.market.observable that return types with arguments of type DoubleArray Modifier and Type Method Description org.joda.beans.MetaProperty<DoubleArray>QuoteScenarioArray.Meta. quotes()The meta-property for thequotesproperty.Methods in com.opengamma.strata.market.observable with parameters of type DoubleArray Modifier and Type Method Description static QuoteScenarioArrayQuoteScenarioArray. of(DoubleArray quotes)Obtains an instance wrapping a set of quotes. -
Uses of DoubleArray in com.opengamma.strata.market.param
Methods in com.opengamma.strata.market.param that return DoubleArray Modifier and Type Method Description DoubleArrayCurrencyParameterSensitivity. getSensitivity()Gets the parameter sensitivity values.DoubleArrayUnitParameterSensitivity. getSensitivity()Gets the parameter sensitivity values.Methods in com.opengamma.strata.market.param that return types with arguments of type DoubleArray Modifier and Type Method Description org.joda.beans.MetaProperty<DoubleArray>CurrencyParameterSensitivity.Meta. sensitivity()The meta-property for thesensitivityproperty.org.joda.beans.MetaProperty<DoubleArray>UnitParameterSensitivity.Meta. sensitivity()The meta-property for thesensitivityproperty.Methods in com.opengamma.strata.market.param with parameters of type DoubleArray Modifier and Type Method Description static CurrencyParameterSensitivityCurrencyParameterSensitivity. of(MarketDataName<?> marketDataName, Currency currency, DoubleArray sensitivity)Obtains an instance from the market data name, currency and sensitivity.static CurrencyParameterSensitivityCurrencyParameterSensitivity. of(MarketDataName<?> marketDataName, List<? extends ParameterMetadata> parameterMetadata, Currency currency, DoubleArray sensitivity)Obtains an instance from the market data name, metadata, currency and sensitivity.static CurrencyParameterSensitivityCurrencyParameterSensitivity. of(MarketDataName<?> marketDataName, List<? extends ParameterMetadata> parameterMetadata, Currency currency, DoubleArray sensitivity, List<ParameterSize> parameterSplit)Obtains an instance from the market data name, metadata, currency, sensitivity and parameter split.static UnitParameterSensitivityUnitParameterSensitivity. of(MarketDataName<?> marketDataName, DoubleArray sensitivity)Obtains an instance from the market data name and sensitivity.static UnitParameterSensitivityUnitParameterSensitivity. of(MarketDataName<?> marketDataName, List<? extends ParameterMetadata> parameterMetadata, DoubleArray sensitivity)Obtains an instance from the market data name, metadata and sensitivity.static UnitParameterSensitivityUnitParameterSensitivity. of(MarketDataName<?> marketDataName, List<? extends ParameterMetadata> parameterMetadata, DoubleArray sensitivity, List<ParameterSize> parameterSplit)Obtains an instance from the market data name, metadata, sensitivity and parameter split.CurrencyParameterSensitivityCurrencyParameterSensitivity. plus(DoubleArray otherSensitivty)Returns an instance with the specified sensitivity array added to the array in this instance.UnitParameterSensitivityUnitParameterSensitivity. plus(DoubleArray otherSensitivty)Returns an instance with the specified sensitivity array added to the array in this instance.CurrencyParameterSensitivity.BuilderCurrencyParameterSensitivity.Builder. sensitivity(DoubleArray sensitivity)Sets the parameter sensitivity values.CurrencyParameterSensitivityCurrencyParameterSensitivity. withSensitivity(DoubleArray sensitivity)Returns an instance with new parameter sensitivity values.UnitParameterSensitivityUnitParameterSensitivity. withSensitivity(DoubleArray sensitivity)Returns an instance with new parameter sensitivity values. -
Uses of DoubleArray in com.opengamma.strata.market.surface
Methods in com.opengamma.strata.market.surface that return DoubleArray Modifier and Type Method Description DoubleArrayInterpolatedNodalSurface. getXValues()Gets the array of x-values, one for each point.DoubleArrayNodalSurface. getXValues()Gets the known x-values of the surface.DoubleArrayInterpolatedNodalSurface. getYValues()Gets the array of y-values, one for each point.DoubleArrayNodalSurface. getYValues()Gets the known y-values of the surface.DoubleArrayInterpolatedNodalSurface. getZValues()Gets the array of z-values, one for each point.DoubleArrayNodalSurface. getZValues()Gets the known z-values of the surface.Methods in com.opengamma.strata.market.surface that return types with arguments of type DoubleArray Modifier and Type Method Description org.joda.beans.MetaProperty<DoubleArray>InterpolatedNodalSurface.Meta. xValues()The meta-property for thexValuesproperty.org.joda.beans.MetaProperty<DoubleArray>InterpolatedNodalSurface.Meta. yValues()The meta-property for theyValuesproperty.org.joda.beans.MetaProperty<DoubleArray>InterpolatedNodalSurface.Meta. zValues()The meta-property for thezValuesproperty.Methods in com.opengamma.strata.market.surface with parameters of type DoubleArray Modifier and Type Method Description CurrencyParameterSensitivityInterpolatedNodalSurface. createParameterSensitivity(Currency currency, DoubleArray sensitivities)UnitParameterSensitivityInterpolatedNodalSurface. createParameterSensitivity(DoubleArray sensitivities)default CurrencyParameterSensitivitySurface. createParameterSensitivity(Currency currency, DoubleArray sensitivities)Creates a parameter sensitivity instance for this surface when the sensitivity values are known.default UnitParameterSensitivitySurface. createParameterSensitivity(DoubleArray sensitivities)Creates a parameter sensitivity instance for this surface when the sensitivity values are known.static InterpolatedNodalSurfaceInterpolatedNodalSurface. of(SurfaceMetadata metadata, DoubleArray xValues, DoubleArray yValues, DoubleArray zValues, SurfaceInterpolator interpolator)Creates an interpolated surface with metadata.static InterpolatedNodalSurfaceInterpolatedNodalSurface. ofUnsorted(SurfaceMetadata metadata, DoubleArray xValues, DoubleArray yValues, DoubleArray zValues, SurfaceInterpolator interpolator)Creates an interpolated surface with metadata, where the values are not sorted.InterpolatedNodalSurfaceInterpolatedNodalSurface. withZValues(DoubleArray zValues)NodalSurfaceNodalSurface. withZValues(DoubleArray values)Returns a new surface with the specified values.InterpolatedNodalSurface.BuilderInterpolatedNodalSurface.Builder. xValues(DoubleArray xValues)Sets the array of x-values, one for each point.InterpolatedNodalSurface.BuilderInterpolatedNodalSurface.Builder. yValues(DoubleArray yValues)Sets the array of y-values, one for each point.InterpolatedNodalSurface.BuilderInterpolatedNodalSurface.Builder. zValues(DoubleArray zValues)Sets the array of z-values, one for each point. -
Uses of DoubleArray in com.opengamma.strata.market.surface.interpolator
Methods in com.opengamma.strata.market.surface.interpolator that return DoubleArray Modifier and Type Method Description DoubleArrayBoundSurfaceInterpolator. parameterSensitivity(double x, double y)Computes the sensitivity of the x-y-value with respect to the surface parameters.Methods in com.opengamma.strata.market.surface.interpolator with parameters of type DoubleArray Modifier and Type Method Description BoundSurfaceInterpolatorGridSurfaceInterpolator. bind(DoubleArray xValues, DoubleArray yValues, DoubleArray zValues)BoundSurfaceInterpolatorSurfaceInterpolator. bind(DoubleArray xValues, DoubleArray yValues, DoubleArray zValues)Binds this interpolator to a surface. -
Uses of DoubleArray in com.opengamma.strata.math.impl.differentiation
Method parameters in com.opengamma.strata.math.impl.differentiation with type arguments of type DoubleArray Modifier and Type Method Description Function<DoubleArray,DoubleMatrix[]>MatrixFieldFirstOrderDifferentiator. differentiate(Function<DoubleArray,DoubleMatrix> function)Function<DoubleArray,DoubleMatrix[]>MatrixFieldFirstOrderDifferentiator. differentiate(Function<DoubleArray,DoubleMatrix> function, Function<DoubleArray,Boolean> domain)Function<DoubleArray,DoubleArray>ScalarFieldFirstOrderDifferentiator. differentiate(Function<DoubleArray,Double> function)Function<DoubleArray,DoubleArray>ScalarFieldFirstOrderDifferentiator. differentiate(Function<DoubleArray,Double> function, Function<DoubleArray,Boolean> domain)Function<DoubleArray,DoubleMatrix>VectorFieldFirstOrderDifferentiator. differentiate(Function<DoubleArray,DoubleArray> function)Function<DoubleArray,DoubleMatrix>VectorFieldFirstOrderDifferentiator. differentiate(Function<DoubleArray,DoubleArray> function)Function<DoubleArray,DoubleMatrix>VectorFieldFirstOrderDifferentiator. differentiate(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,Boolean> domain)Function<DoubleArray,DoubleMatrix>VectorFieldFirstOrderDifferentiator. differentiate(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,Boolean> domain)Function<DoubleArray,DoubleMatrix[]>VectorFieldSecondOrderDifferentiator. differentiate(Function<DoubleArray,DoubleArray> function)This computes the second derivative of a vector field, which is a rank 3 tensor field.Function<DoubleArray,DoubleMatrix[]>VectorFieldSecondOrderDifferentiator. differentiate(Function<DoubleArray,DoubleArray> function)This computes the second derivative of a vector field, which is a rank 3 tensor field.Function<DoubleArray,DoubleMatrix[]>VectorFieldSecondOrderDifferentiator. differentiate(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,Boolean> domain)Function<DoubleArray,DoubleMatrix[]>VectorFieldSecondOrderDifferentiator. differentiate(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,Boolean> domain)Function<DoubleArray,DoubleMatrix[]>VectorFieldSecondOrderDifferentiator. differentiateFull(Function<DoubleArray,DoubleArray> function)Differentiate.Function<DoubleArray,DoubleMatrix[]>VectorFieldSecondOrderDifferentiator. differentiateFull(Function<DoubleArray,DoubleArray> function)Differentiate.Function<DoubleArray,DoubleMatrix>VectorFieldSecondOrderDifferentiator. differentiateNoCross(Function<DoubleArray,DoubleArray> function)Computes the second derivative of a vector field, without cross derivatives.Function<DoubleArray,DoubleMatrix>VectorFieldSecondOrderDifferentiator. differentiateNoCross(Function<DoubleArray,DoubleArray> function)Computes the second derivative of a vector field, without cross derivatives. -
Uses of DoubleArray in com.opengamma.strata.math.impl.function
Methods in com.opengamma.strata.math.impl.function that return DoubleArray Modifier and Type Method Description DoubleArrayConcatenatedVectorFunction. apply(DoubleArray x)DoubleArrayParameterizedCurveVectorFunction. apply(DoubleArray curveParameters)Build a curve given the parameters, then return its value at the sample points.DoubleArrayPiecewisePolynomialFunction1D. differentiate(PiecewisePolynomialResult pp, double xKey)Finds the first derivatives.DoubleArrayPiecewisePolynomialWithSensitivityFunction1D. differentiateNodeSensitivity(PiecewisePolynomialResultsWithSensitivity pp, double xKey)Differentiates the node sensitivity.DoubleArray[]PiecewisePolynomialWithSensitivityFunction1D. differentiateNodeSensitivity(PiecewisePolynomialResultsWithSensitivity pp, double[] xKeys)Differentiates the node sensitivity.DoubleArrayPiecewisePolynomialFunction1D. differentiateTwice(PiecewisePolynomialResult pp, double xKey)Finds the second derivatives.DoubleArrayPiecewisePolynomialWithSensitivityFunction1D. differentiateTwiceNodeSensitivity(PiecewisePolynomialResultsWithSensitivity pp, double xKey)Differentiates the node sensitivity.DoubleArray[]PiecewisePolynomialWithSensitivityFunction1D. differentiateTwiceNodeSensitivity(PiecewisePolynomialResultsWithSensitivity pp, double[] xKeys)Differentiates the node sensitivity.DoubleArrayPiecewisePolynomialFunction1D. evaluate(PiecewisePolynomialResult pp, double xKey)Evaluates the function.DoubleArrayPiecewisePolynomialFunction1D. integrate(PiecewisePolynomialResult pp, double initialKey, double[] xKeys)Integration.DoubleArrayPiecewisePolynomialWithSensitivityFunction1D. nodeSensitivity(PiecewisePolynomialResultsWithSensitivity pp, double xKey)Finds the node sensitivity.DoubleArray[]PiecewisePolynomialWithSensitivityFunction1D. nodeSensitivity(PiecewisePolynomialResultsWithSensitivity pp, double[] xKeys)Finds the node sensitivity.Methods in com.opengamma.strata.math.impl.function that return types with arguments of type DoubleArray Modifier and Type Method Description Function<Double,DoubleArray>ParameterizedCurve. getYParameterSensitivity(DoubleArray params)For a scalar function (curve) that can be written as $y=f(x;\boldsymbol{\theta})$ where x & y are scalars and $\boldsymbol{\theta})$ is a vector of parameters (i.e.Function<DoublesPair,DoubleArray>ParameterizedSurface. getZParameterSensitivity(DoubleArray params)For a function of two variables (surface) that can be written as $z=f(x, y;\boldsymbol{\theta})$ where x, y & z are scalars and $\boldsymbol{\theta})$ is a vector of parameters (i.e.Methods in com.opengamma.strata.math.impl.function with parameters of type DoubleArray Modifier and Type Method Description DoubleArrayConcatenatedVectorFunction. apply(DoubleArray x)DoubleArrayParameterizedCurveVectorFunction. apply(DoubleArray curveParameters)Build a curve given the parameters, then return its value at the sample points.DoubleMatrixConcatenatedVectorFunction. calculateJacobian(DoubleArray x)DoubleMatrixParameterizedCurveVectorFunction. calculateJacobian(DoubleArray x)abstract DoubleMatrixVectorFunction. calculateJacobian(DoubleArray x)Calculate the Jacobian at a point $\mathbf{x}$.protected doublePiecewisePolynomialFunction1D. getValue(DoubleArray coefs, double x, double leftknot)Function<Double,DoubleArray>ParameterizedCurve. getYParameterSensitivity(DoubleArray params)For a scalar function (curve) that can be written as $y=f(x;\boldsymbol{\theta})$ where x & y are scalars and $\boldsymbol{\theta})$ is a vector of parameters (i.e.Function<DoublesPair,DoubleArray>ParameterizedSurface. getZParameterSensitivity(DoubleArray params)For a function of two variables (surface) that can be written as $z=f(x, y;\boldsymbol{\theta})$ where x, y & z are scalars and $\boldsymbol{\theta})$ is a vector of parameters (i.e. -
Uses of DoubleArray in com.opengamma.strata.math.impl.interpolation
Methods in com.opengamma.strata.math.impl.interpolation that return DoubleArray Modifier and Type Method Description protected DoubleArray[]LogCubicSplineNaturalSolver. combinedMatrixEqnSolver(double[][] doubMat1, double[] doubVec, double[][] doubMat2)static DoubleArrayPenaltyMatrixGenerator. flattenMatrix(DoubleMatrix aMatrix)for a matrix {{A_{0,0}, A_{0,1},...._A_{0,m},{A_{1,0}, A_{1,1},...._A_{1,m},...,{A_{n,0}, A_{n,1},...._A_{n,m}} flattened to a vector {A_{0,0}, A_{0,1},...._A_{0,m}, A_{1,0}, A_{1,1},...._A_{1,m},...,A_{n,0}, A_{n,1},...._A_{n,m}}.DoubleArrayPiecewisePolynomialResult. getKnots()Access _knots.DoubleArrayPiecewisePolynomialResult2D. getKnots0()Access _knots0.DoubleArrayPiecewisePolynomialResult2D. getKnots1()Access _knots1.DoubleArrayCubicSplineNakSolver. getKnotsMat1D(double[] xValues)DoubleArrayPiecewisePolynomialInterpolator. interpolate(double[] xValues, double[][] yValuesMatrix, double x)Interpolate.DoubleArrayPiecewisePolynomialInterpolator. interpolate(double[] xValues, double[] yValues, double[] xKeys)Interpolate.DoubleArraySmithWilsonCurveFunction. parameterSensitivity(double x, double alpha, DoubleArray nodes)Computes the sensitivity of the Smith-Wilson curve function to weights parameters at a x value.DoubleArrayBasisFunctionAggregation. weightSensitivity(T x)The sensitivity of the value at a point x to the weights of the basis functions.Methods in com.opengamma.strata.math.impl.interpolation that return types with arguments of type DoubleArray Modifier and Type Method Description ArrayList<DoubleArray>PiecewisePolynomialResult2D. getKnots2D()Access _knots0 and _knots1.Pair<Double,DoubleArray>BasisFunctionAggregation. valueAndWeightSensitivity(T x)The value of the function at the given point and its sensitivity to the weights of the basis functions.Methods in com.opengamma.strata.math.impl.interpolation with parameters of type DoubleArray Modifier and Type Method Description doubleSmithWilsonCurveFunction. firstDerivative(double x, double alpha, DoubleArray nodes, DoubleArray weights)Computes the gradient of the Smith-Wilson curve function at a x value.static doubleSmithWilsonCurveFunction. gap(double x, double alpha, DoubleArray nodes, DoubleArray weights)Computes the gap from the UFR at x value.protected doublePiecewisePolynomialInterpolator. getValue(DoubleArray coefs, double x, double leftknot)DoubleArraySmithWilsonCurveFunction. parameterSensitivity(double x, double alpha, DoubleArray nodes)Computes the sensitivity of the Smith-Wilson curve function to weights parameters at a x value.DoubleMatrix[]HermiteCoefficientsProvider. solveWithSensitivity(double[] values, double[] intervals, double[] slopes, double[][] slopeSensitivity, DoubleArray[] firstWithSensitivity)DoubleMatrix[]HermiteCoefficientsProvider. solveWithSensitivity(double[] values, double[] intervals, double[] slopes, double[][] slopeSensitivity, DoubleArray[] firstWithSensitivity, DoubleArray[] secondWithSensitivity)doubleSmithWilsonCurveFunction. value(double x, double alpha, DoubleArray nodes, DoubleArray weights)Evaluates the Smith-Wilson curve function at a x value.Constructors in com.opengamma.strata.math.impl.interpolation with parameters of type DoubleArray Constructor Description PiecewisePolynomialResult(DoubleArray knots, DoubleMatrix coefMatrix, int order, int dim)Creates an instance.PiecewisePolynomialResult2D(DoubleArray knots0, DoubleArray knots1, DoubleMatrix[][] coefMatrix, int[] order)Creates an instance.PiecewisePolynomialResultsWithSensitivity(DoubleArray knots, DoubleMatrix coefMatrix, int order, int dim, DoubleMatrix[] coeffSense) -
Uses of DoubleArray in com.opengamma.strata.math.impl.linearalgebra
Methods in com.opengamma.strata.math.impl.linearalgebra that return DoubleArray Modifier and Type Method Description DoubleArrayCholeskyDecompositionCommonsResult. solve(DoubleArray b)Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector.DoubleArrayLUDecompositionCommonsResult. solve(DoubleArray b)Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector.DoubleArrayQRDecompositionCommonsResult. solve(DoubleArray b)Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector.DoubleArraySVDecompositionCommonsResult. solve(DoubleArray b)Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector.static DoubleArrayTridiagonalSolver. solvTriDag(TridiagonalMatrix aM, DoubleArray b)Solves the system Ax = y for the unknown vector x, where A is a tridiagonal matrix and y is a vector.Methods in com.opengamma.strata.math.impl.linearalgebra with parameters of type DoubleArray Modifier and Type Method Description DoubleArrayCholeskyDecompositionCommonsResult. solve(DoubleArray b)Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector.DoubleArrayLUDecompositionCommonsResult. solve(DoubleArray b)Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector.DoubleArrayQRDecompositionCommonsResult. solve(DoubleArray b)Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector.DoubleArraySVDecompositionCommonsResult. solve(DoubleArray b)Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector.static DoubleArrayTridiagonalSolver. solvTriDag(TridiagonalMatrix aM, DoubleArray b)Solves the system Ax = y for the unknown vector x, where A is a tridiagonal matrix and y is a vector. -
Uses of DoubleArray in com.opengamma.strata.math.impl.minimization
Methods in com.opengamma.strata.math.impl.minimization that return DoubleArray Modifier and Type Method Description DoubleArrayNonLinearParameterTransforms. inverseTransform(DoubleArray fittingParameters)Transforms from a set of unconstrained fitting parameters to a (possibly larger) set of function parameters.DoubleArraySumToOne. inverseTransform(DoubleArray modelParms)Inverse transform from the N "model" parameters to the N-1 "fit" parameters.DoubleArrayUncoupledParameterTransforms. inverseTransform(DoubleArray fittingParameters)Transforms from a set of unconstrained fitting parameters to a (possibly larger) set of function parameters (some of which may have constrained range and/or be fixed).DoubleArrayNonLinearParameterTransforms. transform(DoubleArray modelParameters)Transforms from a set of model parameters to a (possibly smaller) set of unconstrained fitting parameters.DoubleArraySumToOne. transform(DoubleArray fitParms)Transform from the N-1 "fit" parameters to the N "model" parameters.DoubleArrayUncoupledParameterTransforms. transform(DoubleArray functionParameters)Transforms from a set of function parameters (some of which may have constrained range and/or be fixed) to a (possibly smaller) set of unconstrained fitting parameters.Methods in com.opengamma.strata.math.impl.minimization that return types with arguments of type DoubleArray Modifier and Type Method Description Function<DoubleArray,DoubleArray>NonLinearTransformFunction. getFittingFunction()Function<DoubleArray,DoubleArray>NonLinearTransformFunction. getFittingFunction()Function<DoubleArray,DoubleMatrix>NonLinearTransformFunction. getFittingJacobian()Methods in com.opengamma.strata.math.impl.minimization with parameters of type DoubleArray Modifier and Type Method Description BooleanPositiveOrZero. apply(DoubleArray x)DoubleMatrixNonLinearParameterTransforms. inverseJacobian(DoubleArray fittingParameters)Calculates the inverse Jacobian - the rate of change of the model parameters WRT the fitting parameters.DoubleMatrixUncoupledParameterTransforms. inverseJacobian(DoubleArray fittingParameters)Calculates the Jacobian of the transform from fitting parameters to function parameters - the i,j element will be the partial derivative of i^th function parameter with respect.DoubleArrayNonLinearParameterTransforms. inverseTransform(DoubleArray fittingParameters)Transforms from a set of unconstrained fitting parameters to a (possibly larger) set of function parameters.DoubleArraySumToOne. inverseTransform(DoubleArray modelParms)Inverse transform from the N "model" parameters to the N-1 "fit" parameters.DoubleArrayUncoupledParameterTransforms. inverseTransform(DoubleArray fittingParameters)Transforms from a set of unconstrained fitting parameters to a (possibly larger) set of function parameters (some of which may have constrained range and/or be fixed).DoubleMatrixNonLinearParameterTransforms. jacobian(DoubleArray modelParameters)Calculates the Jacobian - the rate of change of the fitting parameters WRT the model parameters.DoubleMatrixSumToOne. jacobian(DoubleArray fitParms)The N by N-1 Jacobian matrix between the N "model" parameters (that sum to one) and the N-1 "fit" parameters.DoubleMatrixUncoupledParameterTransforms. jacobian(DoubleArray functionParameters)Calculates the Jacobian of the transform from function parameters to fitting parameters - the i,j element will be the partial derivative of i^th fitting parameter with respect.DoubleArrayNonLinearParameterTransforms. transform(DoubleArray modelParameters)Transforms from a set of model parameters to a (possibly smaller) set of unconstrained fitting parameters.DoubleArraySumToOne. transform(DoubleArray fitParms)Transform from the N-1 "fit" parameters to the N "model" parameters.DoubleArrayUncoupledParameterTransforms. transform(DoubleArray functionParameters)Transforms from a set of function parameters (some of which may have constrained range and/or be fixed) to a (possibly smaller) set of unconstrained fitting parameters.Constructors in com.opengamma.strata.math.impl.minimization with parameters of type DoubleArray Constructor Description UncoupledParameterTransforms(DoubleArray startValues, ParameterLimitsTransform[] transforms, BitSet fixed)Constructor parameters in com.opengamma.strata.math.impl.minimization with type arguments of type DoubleArray Constructor Description NonLinearTransformFunction(Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, NonLinearParameterTransforms transform)NonLinearTransformFunction(Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, NonLinearParameterTransforms transform) -
Uses of DoubleArray in com.opengamma.strata.math.impl.rootfinding
Methods in com.opengamma.strata.math.impl.rootfinding that return DoubleArray Modifier and Type Method Description protected DoubleArrayVectorRootFinder. checkInputsAndApplyFunction(Function<DoubleArray,DoubleArray> function, DoubleArray x0)abstract DoubleArrayVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray x0)DoubleArrayVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray... startingPoint)Finds the root.Methods in com.opengamma.strata.math.impl.rootfinding with parameters of type DoubleArray Modifier and Type Method Description protected DoubleArrayVectorRootFinder. checkInputsAndApplyFunction(Function<DoubleArray,DoubleArray> function, DoubleArray x0)abstract DoubleArrayVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray x0)DoubleArrayVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray... startingPoint)Finds the root.Method parameters in com.opengamma.strata.math.impl.rootfinding with type arguments of type DoubleArray Modifier and Type Method Description protected DoubleArrayVectorRootFinder. checkInputsAndApplyFunction(Function<DoubleArray,DoubleArray> function, DoubleArray x0)protected DoubleArrayVectorRootFinder. checkInputsAndApplyFunction(Function<DoubleArray,DoubleArray> function, DoubleArray x0)abstract DoubleArrayVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray x0)abstract DoubleArrayVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray x0)DoubleArrayVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray... startingPoint)Finds the root.DoubleArrayVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray... startingPoint)Finds the root. -
Uses of DoubleArray in com.opengamma.strata.math.impl.rootfinding.newton
Methods in com.opengamma.strata.math.impl.rootfinding.newton that return DoubleArray Modifier and Type Method Description DoubleArrayBaseNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)DoubleArrayBaseNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray startPosition)DoubleArrayInverseJacobianDirectionFunction. getDirection(DoubleMatrix estimate, DoubleArray y)DoubleArrayJacobianDirectionFunction. getDirection(DoubleMatrix estimate, DoubleArray y)DoubleArrayNewtonRootFinderDirectionFunction. getDirection(DoubleMatrix estimate, DoubleArray y)DoubleArrayBaseNewtonVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)Methods in com.opengamma.strata.math.impl.rootfinding.newton with parameters of type DoubleArray Modifier and Type Method Description DoubleArrayBaseNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)DoubleArrayBaseNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray startPosition)DoubleArrayInverseJacobianDirectionFunction. getDirection(DoubleMatrix estimate, DoubleArray y)DoubleArrayJacobianDirectionFunction. getDirection(DoubleMatrix estimate, DoubleArray y)DoubleArrayNewtonRootFinderDirectionFunction. getDirection(DoubleMatrix estimate, DoubleArray y)DoubleMatrixInverseJacobianEstimateInitializationFunction. getInitializedMatrix(Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray x)DoubleMatrixJacobianEstimateInitializationFunction. getInitializedMatrix(Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray x)DoubleMatrixNewtonRootFinderMatrixInitializationFunction. getInitializedMatrix(Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray x)DoubleArrayBaseNewtonVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)DoubleMatrixBroydenMatrixUpdateFunction. getUpdatedMatrix(Function<DoubleArray,DoubleMatrix> j, DoubleArray x, DoubleArray deltaX, DoubleArray deltaY, DoubleMatrix matrix)DoubleMatrixNewtonDefaultUpdateFunction. getUpdatedMatrix(Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray x, DoubleArray deltaX, DoubleArray deltaY, DoubleMatrix matrix)DoubleMatrixNewtonRootFinderMatrixUpdateFunction. getUpdatedMatrix(Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray x, DoubleArray deltaX, DoubleArray deltaY, DoubleMatrix matrix)DoubleMatrixShermanMorrisonMatrixUpdateFunction. getUpdatedMatrix(Function<DoubleArray,DoubleMatrix> g, DoubleArray x, DoubleArray deltaX, DoubleArray deltaY, DoubleMatrix matrix)protected voidBaseNewtonVectorRootFinder. updatePosition(DoubleArray p, Function<DoubleArray,DoubleArray> function, com.opengamma.strata.math.impl.rootfinding.newton.BaseNewtonVectorRootFinder.DataBundle data)Method parameters in com.opengamma.strata.math.impl.rootfinding.newton with type arguments of type DoubleArray Modifier and Type Method Description DoubleArrayBaseNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)DoubleArrayBaseNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)DoubleArrayBaseNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray startPosition)DoubleArrayBaseNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray startPosition)DoubleMatrixInverseJacobianEstimateInitializationFunction. getInitializedMatrix(Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray x)DoubleMatrixJacobianEstimateInitializationFunction. getInitializedMatrix(Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray x)DoubleMatrixNewtonRootFinderMatrixInitializationFunction. getInitializedMatrix(Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray x)DoubleArrayBaseNewtonVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)DoubleArrayBaseNewtonVectorRootFinder. getRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)DoubleMatrixBroydenMatrixUpdateFunction. getUpdatedMatrix(Function<DoubleArray,DoubleMatrix> j, DoubleArray x, DoubleArray deltaX, DoubleArray deltaY, DoubleMatrix matrix)DoubleMatrixNewtonDefaultUpdateFunction. getUpdatedMatrix(Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray x, DoubleArray deltaX, DoubleArray deltaY, DoubleMatrix matrix)DoubleMatrixNewtonRootFinderMatrixUpdateFunction. getUpdatedMatrix(Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray x, DoubleArray deltaX, DoubleArray deltaY, DoubleMatrix matrix)DoubleMatrixShermanMorrisonMatrixUpdateFunction. getUpdatedMatrix(Function<DoubleArray,DoubleMatrix> g, DoubleArray x, DoubleArray deltaX, DoubleArray deltaY, DoubleMatrix matrix)protected voidBaseNewtonVectorRootFinder. updatePosition(DoubleArray p, Function<DoubleArray,DoubleArray> function, com.opengamma.strata.math.impl.rootfinding.newton.BaseNewtonVectorRootFinder.DataBundle data)protected voidBaseNewtonVectorRootFinder. updatePosition(DoubleArray p, Function<DoubleArray,DoubleArray> function, com.opengamma.strata.math.impl.rootfinding.newton.BaseNewtonVectorRootFinder.DataBundle data) -
Uses of DoubleArray in com.opengamma.strata.math.impl.statistics.descriptive
Methods in com.opengamma.strata.math.impl.statistics.descriptive that return DoubleArray Modifier and Type Method Description DoubleArrayQuantileResult. getWeights()Gets the weights.Methods in com.opengamma.strata.math.impl.statistics.descriptive that return types with arguments of type DoubleArray Modifier and Type Method Description org.joda.beans.MetaProperty<DoubleArray>QuantileResult.Meta. weights()The meta-property for theweightsproperty.Methods in com.opengamma.strata.math.impl.statistics.descriptive with parameters of type DoubleArray Modifier and Type Method Description protected QuantileResultDiscreteQuantileMethod. expectedShortfall(double level, DoubleArray sample)protected QuantileResultExponentiallyWeightedInterpolationQuantileMethod. expectedShortfall(double level, DoubleArray sortedSample)protected QuantileResultInterpolationQuantileMethod. expectedShortfall(double level, DoubleArray sample)protected abstract QuantileResultQuantileCalculationMethod. expectedShortfall(double level, DoubleArray sample)Computed the expected shortfall.QuantileResultExponentiallyWeightedInterpolationQuantileMethod. expectedShortfallDetailsFromUnsorted(double level, DoubleArray sample)Compute the expected shortfall and the details used in the result.doubleQuantileCalculationMethod. expectedShortfallFromSorted(double level, DoubleArray sortedSample)Compute the expected shortfall.doubleExponentiallyWeightedInterpolationQuantileMethod. expectedShortfallFromUnsorted(double level, DoubleArray sample)doubleQuantileCalculationMethod. expectedShortfallFromUnsorted(double level, DoubleArray sample)Compute the expected shortfall.QuantileResultExponentiallyWeightedInterpolationQuantileMethod. expectedShortfallResultFromUnsorted(double level, DoubleArray sample)QuantileResultQuantileCalculationMethod. expectedShortfallResultFromUnsorted(double level, DoubleArray sample)Compute the expected shortfall.static QuantileResultQuantileResult. of(double value, int[] indices, DoubleArray weights)Creates anQuantileResultfrom the value, the indices and the weights.protected QuantileResultDiscreteQuantileMethod. quantile(double level, DoubleArray sample, boolean isExtrapolated)protected QuantileResultExponentiallyWeightedInterpolationQuantileMethod. quantile(double level, DoubleArray sortedSample, boolean isExtrapolated)protected QuantileResultInterpolationQuantileMethod. quantile(double level, DoubleArray sample, boolean isExtrapolated)protected abstract QuantileResultQuantileCalculationMethod. quantile(double level, DoubleArray sample, boolean isExtrapolated)Computed the quantile.QuantileResultExponentiallyWeightedInterpolationQuantileMethod. quantileDetailsFromUnsorted(double level, DoubleArray sample)Compute the quantile estimation and the details used in the result.doubleQuantileCalculationMethod. quantileFromSorted(double level, DoubleArray sortedSample)Compute the quantile estimation.doubleExponentiallyWeightedInterpolationQuantileMethod. quantileFromUnsorted(double level, DoubleArray sample)doubleQuantileCalculationMethod. quantileFromUnsorted(double level, DoubleArray sample)Compute the quantile estimation.QuantileResultExponentiallyWeightedInterpolationQuantileMethod. quantileResultFromUnsorted(double level, DoubleArray sample)QuantileResultQuantileCalculationMethod. quantileResultFromUnsorted(double level, DoubleArray sample)Compute the quantile estimation.QuantileResultExponentiallyWeightedInterpolationQuantileMethod. quantileResultWithExtrapolationFromUnsorted(double level, DoubleArray sample)QuantileResultQuantileCalculationMethod. quantileResultWithExtrapolationFromUnsorted(double level, DoubleArray sample)Compute the quantile estimation.doubleQuantileCalculationMethod. quantileWithExtrapolationFromSorted(double level, DoubleArray sortedSample)Compute the quantile estimation.doubleExponentiallyWeightedInterpolationQuantileMethod. quantileWithExtrapolationFromUnsorted(double level, DoubleArray sample)doubleQuantileCalculationMethod. quantileWithExtrapolationFromUnsorted(double level, DoubleArray sample)Compute the quantile estimation. -
Uses of DoubleArray in com.opengamma.strata.math.impl.statistics.leastsquare
Fields in com.opengamma.strata.math.impl.statistics.leastsquare with type parameters of type DoubleArray Modifier and Type Field Description static Function<DoubleArray,Boolean>NonLinearLeastSquareWithPenalty. UNCONSTRAINEDUnconstrained allowed function - always returns trueMethods in com.opengamma.strata.math.impl.statistics.leastsquare that return DoubleArray Modifier and Type Method Description DoubleArrayLeastSquareResults. getFitParameters()Gets the value of the fitting parameters, when the chi-squared is minimised.DoubleArrayLeastSquareResultsWithTransform. getModelParameters()Methods in com.opengamma.strata.math.impl.statistics.leastsquare with parameters of type DoubleArray Modifier and Type Method Description DoubleMatrixNonLinearLeastSquare. calInverseJacobian(DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray originalSolution)the inverse-Jacobian where the i-j entry is the sensitivity of the ith (fitted) parameter (a_i) to the jth data point (y_j).LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, double sigma, ParameterizedFunction<Double,DoubleArray,Double> func, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity is not available but a measurement error is.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, double sigma, ParameterizedFunction<Double,DoubleArray,Double> func, ParameterizedFunction<Double,DoubleArray,DoubleArray> grad, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity and a single measurement error are available.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, DoubleArray sigma, ParameterizedFunction<Double,DoubleArray,Double> func, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity is not available but an array of measurements errors is.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, DoubleArray sigma, ParameterizedFunction<Double,DoubleArray,Double> func, ParameterizedFunction<Double,DoubleArray,DoubleArray> grad, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity and measurement errors are available.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, ParameterizedFunction<Double,DoubleArray,Double> func, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity is not available.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, ParameterizedFunction<Double,DoubleArray,Double> func, ParameterizedFunction<Double,DoubleArray,DoubleArray> grad, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleArray maxJumps)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, DoubleArray maxJumps)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, Function<DoubleArray,Boolean> constraints, DoubleArray maxJumps)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, Function<DoubleArray,DoubleArray> func, DoubleArray startPos)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleMatrix penalty)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleMatrix penalty, Function<DoubleArray,Boolean> allowedValue)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, DoubleMatrix penalty)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, DoubleMatrix penalty, Function<DoubleArray,Boolean> allowedValue)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleMatrix penalty)Use this when the model is given as a function of its parameters only (i.e.Method parameters in com.opengamma.strata.math.impl.statistics.leastsquare with type arguments of type DoubleArray Modifier and Type Method Description DoubleMatrixNonLinearLeastSquare. calInverseJacobian(DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray originalSolution)the inverse-Jacobian where the i-j entry is the sensitivity of the ith (fitted) parameter (a_i) to the jth data point (y_j).DoubleMatrixNonLinearLeastSquare. calInverseJacobian(DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray originalSolution)the inverse-Jacobian where the i-j entry is the sensitivity of the ith (fitted) parameter (a_i) to the jth data point (y_j).LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, double sigma, ParameterizedFunction<Double,DoubleArray,Double> func, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity is not available but a measurement error is.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, double sigma, ParameterizedFunction<Double,DoubleArray,Double> func, ParameterizedFunction<Double,DoubleArray,DoubleArray> grad, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity and a single measurement error are available.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, DoubleArray sigma, ParameterizedFunction<Double,DoubleArray,Double> func, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity is not available but an array of measurements errors is.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, DoubleArray sigma, ParameterizedFunction<Double,DoubleArray,Double> func, ParameterizedFunction<Double,DoubleArray,DoubleArray> grad, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity and measurement errors are available.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, ParameterizedFunction<Double,DoubleArray,Double> func, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity is not available.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray x, DoubleArray y, ParameterizedFunction<Double,DoubleArray,Double> func, ParameterizedFunction<Double,DoubleArray,DoubleArray> grad, DoubleArray startPos)Use this when the model is in the ParameterizedFunction form and analytic parameter sensitivity.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleArray maxJumps)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleArray maxJumps)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, DoubleArray maxJumps)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, DoubleArray maxJumps)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, Function<DoubleArray,Boolean> constraints, DoubleArray maxJumps)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, Function<DoubleArray,Boolean> constraints, DoubleArray maxJumps)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, Function<DoubleArray,DoubleArray> func, DoubleArray startPos)Use this when the model is given as a function of its parameters only (i.e.LeastSquareResultsNonLinearLeastSquare. solve(DoubleArray observedValues, Function<DoubleArray,DoubleArray> func, DoubleArray startPos)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleMatrix penalty)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleMatrix penalty)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleMatrix penalty, Function<DoubleArray,Boolean> allowedValue)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleMatrix penalty, Function<DoubleArray,Boolean> allowedValue)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, DoubleMatrix penalty)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, DoubleMatrix penalty)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, DoubleMatrix penalty, Function<DoubleArray,Boolean> allowedValue)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, DoubleArray sigma, Function<DoubleArray,DoubleArray> func, Function<DoubleArray,DoubleMatrix> jac, DoubleArray startPos, DoubleMatrix penalty, Function<DoubleArray,Boolean> allowedValue)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleMatrix penalty)Use this when the model is given as a function of its parameters only (i.e.LeastSquareWithPenaltyResultsNonLinearLeastSquareWithPenalty. solve(DoubleArray observedValues, Function<DoubleArray,DoubleArray> func, DoubleArray startPos, DoubleMatrix penalty)Use this when the model is given as a function of its parameters only (i.e.Constructors in com.opengamma.strata.math.impl.statistics.leastsquare with parameters of type DoubleArray Constructor Description GeneralizedLeastSquareResults(List<Function<T,Double>> basisFunctions, double chiSq, DoubleArray parameters, DoubleMatrix covariance)Creates an instance.LeastSquareResults(double chiSq, DoubleArray parameters, DoubleMatrix covariance)LeastSquareResults(double chiSq, DoubleArray parameters, DoubleMatrix covariance, DoubleMatrix inverseJacobian)LeastSquareWithPenaltyResults(double chiSqr, double penalty, DoubleArray parameters, DoubleMatrix covariance)Holder for the results of minimising $\sum_{i=1}^N (y_i - f_i(\mathbf{x}))^2 + \mathbf{x}^T\mathbf{P}\mathbf{x}$ WRT $\mathbf{x}$ (the vector of model parameters).LeastSquareWithPenaltyResults(double chiSqr, double penalty, DoubleArray parameters, DoubleMatrix covariance, DoubleMatrix inverseJacobian)Holder for the results of minimising $\sum_{i=1}^N (y_i - f_i(\mathbf{x}))^2 + \mathbf{x}^T\mathbf{P}\mathbf{x}$ WRT $\mathbf{x}$ (the vector of model parameters). -
Uses of DoubleArray in com.opengamma.strata.math.impl.util
Methods in com.opengamma.strata.math.impl.util that return DoubleArray Modifier and Type Method Description static DoubleArrayCommonsMathWrapper. unwrap(org.apache.commons.math3.linear.RealVector x)Unwraps a vector.Methods in com.opengamma.strata.math.impl.util with parameters of type DoubleArray Modifier and Type Method Description static org.apache.commons.math3.linear.RealVectorCommonsMathWrapper. wrap(DoubleArray x)Wraps a vector.static org.apache.commons.math3.linear.RealMatrixCommonsMathWrapper. wrapAsMatrix(DoubleArray x)Wraps a matrix. -
Uses of DoubleArray in com.opengamma.strata.math.linearalgebra
Methods in com.opengamma.strata.math.linearalgebra that return DoubleArray Modifier and Type Method Description default DoubleArrayDecompositionResult. solve(DoubleArray input)Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector.Methods in com.opengamma.strata.math.linearalgebra with parameters of type DoubleArray Modifier and Type Method Description default DoubleArrayDecompositionResult. solve(DoubleArray input)Solves $\mathbf{A}x = b$ where $\mathbf{A}$ is a (decomposed) matrix and $b$ is a vector. -
Uses of DoubleArray in com.opengamma.strata.math.rootfind
Methods in com.opengamma.strata.math.rootfind that return DoubleArray Modifier and Type Method Description DoubleArrayNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)Finds the root from the specified start position.DoubleArrayNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray startPosition)Finds the root from the specified start position.Methods in com.opengamma.strata.math.rootfind with parameters of type DoubleArray Modifier and Type Method Description DoubleArrayNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)Finds the root from the specified start position.DoubleArrayNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray startPosition)Finds the root from the specified start position.Method parameters in com.opengamma.strata.math.rootfind with type arguments of type DoubleArray Modifier and Type Method Description DoubleArrayNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)Finds the root from the specified start position.DoubleArrayNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, DoubleArray startPosition)Finds the root from the specified start position.DoubleArrayNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray startPosition)Finds the root from the specified start position.DoubleArrayNewtonVectorRootFinder. findRoot(Function<DoubleArray,DoubleArray> function, Function<DoubleArray,DoubleMatrix> jacobianFunction, DoubleArray startPosition)Finds the root from the specified start position. -
Uses of DoubleArray in com.opengamma.strata.measure.fxopt
Methods in com.opengamma.strata.measure.fxopt with parameters of type DoubleArray Modifier and Type Method Description BlackFxOptionSurfaceVolatilitiesBlackFxOptionInterpolatedNodalSurfaceVolatilitiesSpecification. volatilities(ZonedDateTime valuationDateTime, DoubleArray parameters, ReferenceData refData)BlackFxOptionSmileVolatilitiesBlackFxOptionSmileVolatilitiesSpecification. volatilities(ZonedDateTime valuationDateTime, DoubleArray parameters, ReferenceData refData)FxOptionVolatilitiesFxOptionVolatilitiesDefinition. volatilities(ZonedDateTime valuationDateTime, DoubleArray parameters, ReferenceData refData)Creates FX option volatilities.FxOptionVolatilitiesFxOptionVolatilitiesSpecification. volatilities(ZonedDateTime valuationDateTime, DoubleArray parameters, ReferenceData refData)Creates FX option volatilities. -
Uses of DoubleArray in com.opengamma.strata.pricer
Methods in com.opengamma.strata.pricer with parameters of type DoubleArray Modifier and Type Method Description CurrencyParameterSensitivitiesDiscountFactors. createParameterSensitivity(Currency currency, DoubleArray sensitivities)Creates the parameter sensitivity when the sensitivity values are known.CurrencyParameterSensitivitiesSimpleDiscountFactors. createParameterSensitivity(Currency currency, DoubleArray sensitivities)CurrencyParameterSensitivitiesZeroRateDiscountFactors. createParameterSensitivity(Currency currency, DoubleArray sensitivities)CurrencyParameterSensitivitiesZeroRatePeriodicDiscountFactors. createParameterSensitivity(Currency currency, DoubleArray sensitivities) -
Uses of DoubleArray in com.opengamma.strata.pricer.capfloor
Methods in com.opengamma.strata.pricer.capfloor that return DoubleArray Modifier and Type Method Description DoubleArraySabrIborCapletFloorletVolatilityCalibrationDefinition. createFullInitialValues()Create initial values for all the curve parameters.DoubleArraySabrIborCapletFloorletVolatilityCalibrationDefinition. getInitialParameters()Gets the initial parameter values used in calibration.Methods in com.opengamma.strata.pricer.capfloor that return types with arguments of type DoubleArray Modifier and Type Method Description org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>NormalSabrParametersIborCapletFloorletVolatilities.Meta. dataSensitivityAlpha()The meta-property for thedataSensitivityAlphaproperty.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>SabrParametersIborCapletFloorletVolatilities.Meta. dataSensitivityAlpha()The meta-property for thedataSensitivityAlphaproperty.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>NormalSabrParametersIborCapletFloorletVolatilities.Meta. dataSensitivityBeta()The meta-property for thedataSensitivityBetaproperty.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>SabrParametersIborCapletFloorletVolatilities.Meta. dataSensitivityBeta()The meta-property for thedataSensitivityBetaproperty.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>NormalSabrParametersIborCapletFloorletVolatilities.Meta. dataSensitivityNu()The meta-property for thedataSensitivityNuproperty.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>SabrParametersIborCapletFloorletVolatilities.Meta. dataSensitivityNu()The meta-property for thedataSensitivityNuproperty.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>NormalSabrParametersIborCapletFloorletVolatilities.Meta. dataSensitivityRho()The meta-property for thedataSensitivityRhoproperty.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>SabrParametersIborCapletFloorletVolatilities.Meta. dataSensitivityRho()The meta-property for thedataSensitivityRhoproperty.Optional<ImmutableList<DoubleArray>>NormalSabrParametersIborCapletFloorletVolatilities. getDataSensitivityAlpha()Gets the sensitivity of the Alpha parameters to the raw data used for calibration.Optional<ImmutableList<DoubleArray>>SabrParametersIborCapletFloorletVolatilities. getDataSensitivityAlpha()Gets the sensitivity of the Alpha parameters to the raw data used for calibration.Optional<ImmutableList<DoubleArray>>NormalSabrParametersIborCapletFloorletVolatilities. getDataSensitivityBeta()Gets the sensitivity of the Beta parameters to the raw data used for calibration.Optional<ImmutableList<DoubleArray>>SabrParametersIborCapletFloorletVolatilities. getDataSensitivityBeta()Gets the sensitivity of the Beta parameters to the raw data used for calibration.Optional<ImmutableList<DoubleArray>>NormalSabrParametersIborCapletFloorletVolatilities. getDataSensitivityNu()Gets the sensitivity of the Nu parameters to the raw data used for calibration.Optional<ImmutableList<DoubleArray>>SabrParametersIborCapletFloorletVolatilities. getDataSensitivityNu()Gets the sensitivity of the Nu parameters to the raw data used for calibration.Optional<ImmutableList<DoubleArray>>NormalSabrParametersIborCapletFloorletVolatilities. getDataSensitivityRho()Gets the sensitivity of the Rho parameters to the raw data used for calibration.Optional<ImmutableList<DoubleArray>>SabrParametersIborCapletFloorletVolatilities. getDataSensitivityRho()Gets the sensitivity of the Rho parameters to the raw data used for calibration.ImmutableList<DoubleArray>SabrIborCapletFloorletVolatilityCalibrationDefinition. getParameterCurveNodes()Gets the nodes of SABR parameter curves.org.joda.beans.MetaProperty<DoubleArray>SabrIborCapletFloorletVolatilityCalibrationDefinition.Meta. initialParameters()The meta-property for theinitialParametersproperty.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>SabrIborCapletFloorletVolatilityCalibrationDefinition.Meta. parameterCurveNodes()The meta-property for theparameterCurveNodesproperty.Methods in com.opengamma.strata.pricer.capfloor with parameters of type DoubleArray Modifier and Type Method Description DoubleMatrixDirectIborCapletFloorletFlatVolatilityDefinition. computePenaltyMatrix(DoubleArray expiries)Computes penalty matrix.DoubleMatrixDirectIborCapletFloorletVolatilityDefinition. computePenaltyMatrix(DoubleArray strikes, DoubleArray expiries)Computes penalty matrix.List<Curve>SabrIborCapletFloorletVolatilityCalibrationDefinition. createSabrParameterCurve(List<CurveMetadata> metadata, DoubleArray nodeValues)Creates the parameter curves with parameter node values.SabrParametersIborCapletFloorletVolatilities.BuilderSabrParametersIborCapletFloorletVolatilities.Builder. dataSensitivityAlpha(DoubleArray... dataSensitivityAlpha)Sets thedataSensitivityAlphaproperty in the builder from an array of objects.SabrParametersIborCapletFloorletVolatilities.BuilderSabrParametersIborCapletFloorletVolatilities.Builder. dataSensitivityBeta(DoubleArray... dataSensitivityBeta)Sets thedataSensitivityBetaproperty in the builder from an array of objects.SabrParametersIborCapletFloorletVolatilities.BuilderSabrParametersIborCapletFloorletVolatilities.Builder. dataSensitivityNu(DoubleArray... dataSensitivityNu)Sets thedataSensitivityNuproperty in the builder from an array of objects.SabrParametersIborCapletFloorletVolatilities.BuilderSabrParametersIborCapletFloorletVolatilities.Builder. dataSensitivityRho(DoubleArray... dataSensitivityRho)Sets thedataSensitivityRhoproperty in the builder from an array of objects.SabrIborCapletFloorletVolatilityCalibrationDefinition.BuilderSabrIborCapletFloorletVolatilityCalibrationDefinition.Builder. initialParameters(DoubleArray initialParameters)Sets the initial parameter values used in calibration.static SabrIborCapletFloorletVolatilityCalibrationDefinitionSabrIborCapletFloorletVolatilityCalibrationDefinition. ofFixedBeta(IborCapletFloorletVolatilitiesName name, IborIndex index, DayCount dayCount, double beta, double shift, DoubleArray alphaCurveNodes, DoubleArray rhoCurveNodes, DoubleArray nuCurveNodes, CurveInterpolator interpolator, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight, SabrVolatilityFormula sabrVolatilityFormula)Obtains an instance with fixed beta and nonzero shift.static SabrIborCapletFloorletVolatilityCalibrationDefinitionSabrIborCapletFloorletVolatilityCalibrationDefinition. ofFixedBeta(IborCapletFloorletVolatilitiesName name, IborIndex index, DayCount dayCount, double shift, DoubleArray alphaCurveNodes, DoubleArray rhoCurveNodes, DoubleArray nuCurveNodes, DoubleArray initialParameters, CurveInterpolator interpolator, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight, SabrVolatilityFormula sabrVolatilityFormula)Obtains an instance with fixed beta, nonzero shift and initial values.static SabrIborCapletFloorletVolatilityCalibrationDefinitionSabrIborCapletFloorletVolatilityCalibrationDefinition. ofFixedBeta(IborCapletFloorletVolatilitiesName name, IborIndex index, DayCount dayCount, double beta, DoubleArray alphaCurveNodes, DoubleArray rhoCurveNodes, DoubleArray nuCurveNodes, CurveInterpolator interpolator, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight, SabrVolatilityFormula sabrVolatilityFormula)Obtains an instance with fixed beta and zero shift.static SabrIborCapletFloorletVolatilityCalibrationDefinitionSabrIborCapletFloorletVolatilityCalibrationDefinition. ofFixedBeta(IborCapletFloorletVolatilitiesName name, IborIndex index, DayCount dayCount, DoubleArray alphaCurveNodes, DoubleArray rhoCurveNodes, DoubleArray nuCurveNodes, DoubleArray initialParameters, CurveInterpolator interpolator, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight, SabrVolatilityFormula sabrVolatilityFormula)Obtains an instance with fixed beta, zero shift and initial values.static SabrIborCapletFloorletVolatilityCalibrationDefinitionSabrIborCapletFloorletVolatilityCalibrationDefinition. ofFixedRho(IborCapletFloorletVolatilitiesName name, IborIndex index, DayCount dayCount, double rho, double shift, DoubleArray alphaCurveNodes, DoubleArray betaCurveNodes, DoubleArray nuCurveNodes, CurveInterpolator interpolator, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight, SabrVolatilityFormula sabrVolatilityFormula)Obtains an instance with fixed rho and nonzero shift.static SabrIborCapletFloorletVolatilityCalibrationDefinitionSabrIborCapletFloorletVolatilityCalibrationDefinition. ofFixedRho(IborCapletFloorletVolatilitiesName name, IborIndex index, DayCount dayCount, double shift, DoubleArray alphaCurveNodes, DoubleArray betaCurveNodes, DoubleArray nuCurveNodes, DoubleArray initialParameters, CurveInterpolator interpolator, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight, SabrVolatilityFormula sabrVolatilityFormula)Obtains an instance with fixed rho, nonzero shift and initial values.static SabrIborCapletFloorletVolatilityCalibrationDefinitionSabrIborCapletFloorletVolatilityCalibrationDefinition. ofFixedRho(IborCapletFloorletVolatilitiesName name, IborIndex index, DayCount dayCount, double rho, DoubleArray alphaCurveNodes, DoubleArray betaCurveNodes, DoubleArray nuCurveNodes, CurveInterpolator interpolator, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight, SabrVolatilityFormula sabrVolatilityFormula)Obtains an instance with fixed rho and zero shift.static SabrIborCapletFloorletVolatilityCalibrationDefinitionSabrIborCapletFloorletVolatilityCalibrationDefinition. ofFixedRho(IborCapletFloorletVolatilitiesName name, IborIndex index, DayCount dayCount, DoubleArray alphaCurveNodes, DoubleArray betaCurveNodes, DoubleArray nuCurveNodes, DoubleArray initialParameters, CurveInterpolator interpolator, CurveExtrapolator extrapolatorLeft, CurveExtrapolator extrapolatorRight, SabrVolatilityFormula sabrVolatilityFormula)Obtains an instance with fixed rho, zero shift and initial values.SabrIborCapletFloorletVolatilityCalibrationDefinition.BuilderSabrIborCapletFloorletVolatilityCalibrationDefinition.Builder. parameterCurveNodes(DoubleArray... parameterCurveNodes)Sets theparameterCurveNodesproperty in the builder from an array of objects.Method parameters in com.opengamma.strata.pricer.capfloor with type arguments of type DoubleArray Modifier and Type Method Description SabrParametersIborCapletFloorletVolatilities.BuilderSabrParametersIborCapletFloorletVolatilities.Builder. dataSensitivityAlpha(List<DoubleArray> dataSensitivityAlpha)Sets the sensitivity of the Alpha parameters to the raw data used for calibration.SabrParametersIborCapletFloorletVolatilities.BuilderSabrParametersIborCapletFloorletVolatilities.Builder. dataSensitivityBeta(List<DoubleArray> dataSensitivityBeta)Sets the sensitivity of the Beta parameters to the raw data used for calibration.SabrParametersIborCapletFloorletVolatilities.BuilderSabrParametersIborCapletFloorletVolatilities.Builder. dataSensitivityNu(List<DoubleArray> dataSensitivityNu)Sets the sensitivity of the Nu parameters to the raw data used for calibration.SabrParametersIborCapletFloorletVolatilities.BuilderSabrParametersIborCapletFloorletVolatilities.Builder. dataSensitivityRho(List<DoubleArray> dataSensitivityRho)Sets the sensitivity of the Rho parameters to the raw data used for calibration.SabrIborCapletFloorletVolatilityCalibrationDefinition.BuilderSabrIborCapletFloorletVolatilityCalibrationDefinition.Builder. parameterCurveNodes(List<DoubleArray> parameterCurveNodes)Sets the nodes of SABR parameter curves. -
Uses of DoubleArray in com.opengamma.strata.pricer.credit
Methods in com.opengamma.strata.pricer.credit that return DoubleArray Modifier and Type Method Description static DoubleArrayDoublesScheduleGenerator. getIntegrationsPoints(double start, double end, DoubleArray discountCurveNodes, DoubleArray creditCurveNodes)Combines the discount curve nodes and credit curve nodes.DoubleArrayCreditDiscountFactors. getParameterKeys()Obtains the parameter keys of the underlying curve.DoubleArrayIsdaCreditDiscountFactors. getParameterKeys()DoubleArrayLegalEntitySurvivalProbabilities. getParameterKeys()Obtains the parameter keys of the underlying curve.protected DoubleArraySpreadSensitivityCalculator. impliedSpread(List<ResolvedCdsTrade> bucketCds, CreditRatesProvider ratesProvider, ReferenceData refData)static DoubleArrayDoublesScheduleGenerator. truncateSetInclusive(double lower, double upper, DoubleArray set)Truncates an array of doubles.Methods in com.opengamma.strata.pricer.credit with parameters of type DoubleArray Modifier and Type Method Description NodalCurveFastCreditCurveCalibrator. calibrate(List<ResolvedCdsTrade> calibrationCDSs, DoubleArray flactionalSpreads, DoubleArray pointsUpfront, CurveName name, LocalDate valuationDate, CreditDiscountFactors discountFactors, RecoveryRates recoveryRates, ReferenceData refData)abstract NodalCurveIsdaCompliantCreditCurveCalibrator. calibrate(List<ResolvedCdsTrade> calibrationCDSs, DoubleArray flactionalSpreads, DoubleArray pointsUpfront, CurveName name, LocalDate valuationDate, CreditDiscountFactors discountFactors, RecoveryRates recoveryRates, ReferenceData refData)Calibrate the ISDA compliant credit curve to points upfront and fractional spread.NodalCurveSimpleCreditCurveCalibrator. calibrate(List<ResolvedCdsTrade> calibrationCDSs, DoubleArray premiums, DoubleArray pointsUpfront, CurveName name, LocalDate valuationDate, CreditDiscountFactors discountFactors, RecoveryRates recoveryRates, ReferenceData refData)CurrencyParameterSensitivitiesCreditDiscountFactors. createParameterSensitivity(Currency currency, DoubleArray sensitivities)Creates the parameter sensitivity when the sensitivity values are known.CurrencyParameterSensitivitiesIsdaCreditDiscountFactors. createParameterSensitivity(Currency currency, DoubleArray sensitivities)static DoubleArrayDoublesScheduleGenerator. getIntegrationsPoints(double start, double end, DoubleArray discountCurveNodes, DoubleArray creditCurveNodes)Combines the discount curve nodes and credit curve nodes.static IsdaCreditDiscountFactorsIsdaCreditDiscountFactors. of(Currency currency, LocalDate valuationDate, CurveName curveName, DoubleArray yearFractions, DoubleArray zeroRates, DayCount dayCount)Creates an instance from year fraction and zero rate values.static DoubleArrayDoublesScheduleGenerator. truncateSetInclusive(double lower, double upper, DoubleArray set)Truncates an array of doubles. -
Uses of DoubleArray in com.opengamma.strata.pricer.curve
Methods in com.opengamma.strata.pricer.curve that return DoubleArray Modifier and Type Method Description DoubleArrayCalibrationMeasures. derivative(ResolvedTrade trade, RatesProvider provider, List<CurveParameterSize> curveOrder)Calculates the sensitivity with respect to the rates provider.Methods in com.opengamma.strata.pricer.curve with parameters of type DoubleArray Modifier and Type Method Description ImmutableRatesProviderImmutableRatesProviderGenerator. generate(DoubleArray parameters, Map<CurveName,JacobianCalibrationMatrix> jacobians, Map<CurveName,DoubleArray> sensitivitiesMarketQuote)default ImmutableRatesProviderRatesProviderGenerator. generate(DoubleArray parameters)Generates a rates provider from a set of parameters.default ImmutableRatesProviderRatesProviderGenerator. generate(DoubleArray parameters, Map<CurveName,JacobianCalibrationMatrix> jacobians)Generates a rates provider from a set of parameters and calibration information.ImmutableRatesProviderRatesProviderGenerator. generate(DoubleArray parameters, Map<CurveName,JacobianCalibrationMatrix> jacobians, Map<CurveName,DoubleArray> sensitivitiesMarketQuote)Generates a rates provider from a set of parameters and calibration information. -
Uses of DoubleArray in com.opengamma.strata.pricer.fxopt
Methods in com.opengamma.strata.pricer.fxopt that return DoubleArray Modifier and Type Method Description DoubleArraySmileDeltaParameters. getDelta()Gets the delta of the different data points.default DoubleArraySmileDeltaTermStructure. getDelta()Gets delta values.default DoubleArraySmileDeltaTermStructure. getDeltaFull()Computes full delta for all strikes including put delta absolute value.DoubleArrayRecombiningTrinomialTreeData. getDiscountFactor()Gets the discount factor.DoubleArrayInterpolatedStrikeSmileDeltaTermStructure. getExpiries()DoubleArraySmileDeltaTermStructure. getExpiries()Gets the expiries associated with the volatility term.DoubleArrayRecombiningTrinomialTreeData. getStateValueAtLayer(int i)Obtains the state values at thei-th time layer.DoubleArrayRecombiningTrinomialTreeData. getTime()Gets the time.DoubleArraySmileDeltaParameters. getVolatility()Gets the volatilities associated with the strikes.DoubleArraySmileDeltaParameters. impliedStrikesDerivativeToExpiry(double forward)Calculates the derivatives of the implied strikes to expiry.DoubleArraySmileDeltaParameters. impliedStrikesDerivativeToSmileVols(double forward)Calculates the derivatives of the implied strikes to volatility.DoubleArraySmileDeltaParameters. strike(double forward)Calculates the strikes in ascending order.Methods in com.opengamma.strata.pricer.fxopt that return types with arguments of type DoubleArray Modifier and Type Method Description org.joda.beans.MetaProperty<DoubleArray>SmileDeltaParameters.Meta. delta()The meta-property for thedeltaproperty.org.joda.beans.MetaProperty<DoubleArray>RecombiningTrinomialTreeData.Meta. discountFactor()The meta-property for thediscountFactorproperty.org.joda.beans.MetaProperty<DoubleArray>RecombiningTrinomialTreeData.Meta. time()The meta-property for thetimeproperty.org.joda.beans.MetaProperty<DoubleArray>SmileDeltaParameters.Meta. volatility()The meta-property for thevolatilityproperty.Methods in com.opengamma.strata.pricer.fxopt with parameters of type DoubleArray Modifier and Type Method Description static InterpolatedStrikeSmileDeltaTermStructureInterpolatedStrikeSmileDeltaTermStructure. of(DoubleArray expiries, DoubleArray delta, DoubleArray atm, DoubleMatrix riskReversal, DoubleMatrix strangle, DayCount dayCount)Obtains volatility term structure from expiry times, delta values, ATM volatilities, risk reversal figures and strangle figures.static InterpolatedStrikeSmileDeltaTermStructureInterpolatedStrikeSmileDeltaTermStructure. of(DoubleArray expiries, DoubleArray delta, DoubleArray atm, DoubleMatrix riskReversal, DoubleMatrix strangle, DayCount dayCount, CurveInterpolator strikeInterpolator, CurveExtrapolator strikeExtrapolatorLeft, CurveExtrapolator strikeExtrapolatorRight)Obtains volatility term structure from expiry times, delta values, ATM volatilities, risk reversal figures and strangle figures with strike interpolator and extrapolators specified.static InterpolatedStrikeSmileDeltaTermStructureInterpolatedStrikeSmileDeltaTermStructure. of(DoubleArray expiries, DoubleArray delta, DoubleArray atm, DoubleMatrix riskReversal, DoubleMatrix strangle, DayCount dayCount, CurveInterpolator timeInterpolator, CurveExtrapolator timeExtrapolatorLeft, CurveExtrapolator timeExtrapolatorRight, CurveInterpolator strikeInterpolator, CurveExtrapolator strikeExtrapolatorLeft, CurveExtrapolator strikeExtrapolatorRight)Obtains volatility term structure from expiry times, delta values, ATM volatilities, risk reversal figures and strangle figures with interpolator and extrapolators fully specified.static InterpolatedStrikeSmileDeltaTermStructureInterpolatedStrikeSmileDeltaTermStructure. of(DoubleArray expiries, DoubleArray delta, DoubleMatrix volatility, DayCount dayCount)Obtains volatility term structure from expiry times, delta values and volatilities.static InterpolatedStrikeSmileDeltaTermStructureInterpolatedStrikeSmileDeltaTermStructure. of(DoubleArray expiries, DoubleArray delta, DoubleMatrix volatility, DayCount dayCount, CurveInterpolator strikeInterpolator, CurveExtrapolator strikeExtrapolatorLeft, CurveExtrapolator strikeExtrapolatorRight)Obtains volatility term structure from expiry times, delta values and volatilities with strike interpolator and extrapolators specified.static InterpolatedStrikeSmileDeltaTermStructureInterpolatedStrikeSmileDeltaTermStructure. of(DoubleArray expiries, DoubleArray delta, DoubleMatrix volatility, DayCount dayCount, CurveInterpolator timeInterpolator, CurveExtrapolator timeExtrapolatorLeft, CurveExtrapolator timeExtrapolatorRight, CurveInterpolator strikeInterpolator, CurveExtrapolator strikeExtrapolatorLeft, CurveExtrapolator strikeExtrapolatorRight)Obtains volatility term structure from expiry times, delta values and volatilities with interpolator and extrapolators fully specified.static RecombiningTrinomialTreeDataRecombiningTrinomialTreeData. of(DoubleMatrix stateValue, List<DoubleMatrix> transitionProbability, DoubleArray discountFactor, DoubleArray time)Creates an instance.static SmileDeltaParametersSmileDeltaParameters. of(double expiry, double atmVolatility, DoubleArray delta, DoubleArray riskReversal, DoubleArray strangle)Obtains an instance from market data at-the-money, delta, risk-reversal and strangle.static SmileDeltaParametersSmileDeltaParameters. of(double expiry, double atmVolatility, DoubleArray delta, DoubleArray riskReversal, DoubleArray strangle, List<ParameterMetadata> parameterMetadata)Obtains an instance from market data at-the-money, delta, risk-reversal and strangle.static SmileDeltaParametersSmileDeltaParameters. of(double expiry, Tenor expiryTenor, double atmVolatility, DoubleArray delta, DoubleArray riskReversal, DoubleArray strangle)Obtains an instance from market data at-the-money, delta, risk-reversal and strangle.static SmileDeltaParametersSmileDeltaParameters. of(double expiry, Tenor expiryTenor, DoubleArray delta, DoubleArray volatility)Obtains an instance from volatility.static SmileDeltaParametersSmileDeltaParameters. of(double expiry, DoubleArray delta, DoubleArray volatility)Obtains an instance from volatility.static SmileDeltaParametersSmileDeltaParameters. of(double expiry, DoubleArray delta, DoubleArray volatility, List<ParameterMetadata> parameterMetadata)Obtains an instance from volatility.SmileAndBucketedSensitivitiesInterpolatedStrikeSmileDeltaTermStructure. smileAndSensitivitiesForExpiry(double expiry, DoubleArray volatilityAtTimeSensitivity)SmileAndBucketedSensitivitiesSmileDeltaTermStructure. smileAndSensitivitiesForExpiry(double expiry, DoubleArray volatilityAtTimeSensitivity)Calculates the smile at a given time and the sensitivities with respect to the volatility data points. -
Uses of DoubleArray in com.opengamma.strata.pricer.impl.rate.model
Methods in com.opengamma.strata.pricer.impl.rate.model that return types with arguments of type DoubleArray Modifier and Type Method Description Pair<DoubleArray,DoubleArray>HullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDx2Da1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative with respect to the alphaFixed and to the alphaIbor of the of swap rate second derivative with respect to the random variable x in theP(*,theta)numeraire.Pair<DoubleArray,DoubleArray>HullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDx2Da1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative with respect to the alphaFixed and to the alphaIbor of the of swap rate second derivative with respect to the random variable x in theP(*,theta)numeraire.Pair<DoubleArray,DoubleArray>HullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDx2Ddcf1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative with respect to the discountedCashFlowFixed and to the discountedCashFlowIbor of the of swap rate second derivative with respect to the random variable x in theP(*,theta)numeraire.Pair<DoubleArray,DoubleArray>HullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDx2Ddcf1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative with respect to the discountedCashFlowFixed and to the discountedCashFlowIbor of the of swap rate second derivative with respect to the random variable x in theP(*,theta)numeraire.Methods in com.opengamma.strata.pricer.impl.rate.model with parameters of type DoubleArray Modifier and Type Method Description doubleHullWhiteOneFactorPiecewiseConstantInterestRateModel. kappa(DoubleArray discountedCashFlow, DoubleArray alpha)Calculates the exercise boundary for swaptions.doubleHullWhiteOneFactorPiecewiseConstantInterestRateModel. lambda(DoubleArray discountedCashFlow, DoubleArray alpha2, DoubleArray hwH)Calculates the common part of the exercise boundary of European swaptions forward.doubleHullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRate(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the swap rate for a given value of the standard normal random variable in theP(*,theta)numeraire.ValueDerivativesHullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDaf1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative of the swap rate with respect to thealphaFixedin theP(*,theta)numeraire.ValueDerivativesHullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDai1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative of the swap rate with respect to thealphaIborin theP(*,theta)numeraire.ValueDerivativesHullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDdcff1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative of the swap rate with respect to thediscountedCashFlowFixedin theP(*,theta)numeraire.ValueDerivativesHullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDdcfi1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative of the swap rate with respect to thediscountedCashFlowIborin theP(*,theta)numeraire.doubleHullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDx1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative of the swap rate with respect to the value of the standard normal random variable in theP(*,theta)numeraire.doubleHullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDx2(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the second order derivative of the swap rate with respect to the value of the standard normal random variable in theP(*,theta)numeraire.Pair<DoubleArray,DoubleArray>HullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDx2Da1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative with respect to the alphaFixed and to the alphaIbor of the of swap rate second derivative with respect to the random variable x in theP(*,theta)numeraire.Pair<DoubleArray,DoubleArray>HullWhiteOneFactorPiecewiseConstantInterestRateModel. swapRateDx2Ddcf1(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor)Calculates the first order derivative with respect to the discountedCashFlowFixed and to the discountedCashFlowIbor of the of swap rate second derivative with respect to the random variable x in theP(*,theta)numeraire. -
Uses of DoubleArray in com.opengamma.strata.pricer.impl.tree
Methods in com.opengamma.strata.pricer.impl.tree that return DoubleArray Modifier and Type Method Description default DoubleArrayOptionFunction. getNextOptionValues(double discountFactor, double upProbability, double middleProbability, double downProbability, DoubleArray value, double spot, double downFactor, double middleFactor, int i)Computes the option values in the intermediate nodes.default DoubleArrayOptionFunction. getNextOptionValues(double discountFactor, DoubleMatrix transitionProbability, DoubleArray stateValue, DoubleArray value, int i)Computes the option values in the intermediate nodes.DoubleArrayCoxRossRubinsteinLatticeSpecification. getParametersTrinomial(double volatility, double interestRate, double dt)DoubleArrayLatticeSpecification. getParametersTrinomial(double volatility, double interestRate, double dt)Computes parameters for uniform trinomial tree.DoubleArrayTrigeorgisLatticeSpecification. getParametersTrinomial(double volatility, double interestRate, double dt)DoubleArrayEuropeanVanillaOptionFunction. getPayoffAtExpiryTrinomial(DoubleArray stateValue)default DoubleArrayOptionFunction. getPayoffAtExpiryTrinomial(double spot, double downFactor, double middleFactor)Computes payoff at expiry for trinomial tree.DoubleArrayOptionFunction. getPayoffAtExpiryTrinomial(DoubleArray stateValue)Computes payoff at expiry for trinomial tree.DoubleArrayConstantContinuousSingleBarrierKnockoutFunction. getRebate()Gets the rebate.Methods in com.opengamma.strata.pricer.impl.tree that return types with arguments of type DoubleArray Modifier and Type Method Description org.joda.beans.MetaProperty<DoubleArray>ConstantContinuousSingleBarrierKnockoutFunction.Meta. rebate()The meta-property for therebateproperty.Methods in com.opengamma.strata.pricer.impl.tree with parameters of type DoubleArray Modifier and Type Method Description default DoubleArrayOptionFunction. getNextOptionValues(double discountFactor, double upProbability, double middleProbability, double downProbability, DoubleArray value, double spot, double downFactor, double middleFactor, int i)Computes the option values in the intermediate nodes.default DoubleArrayOptionFunction. getNextOptionValues(double discountFactor, DoubleMatrix transitionProbability, DoubleArray stateValue, DoubleArray value, int i)Computes the option values in the intermediate nodes.DoubleArrayEuropeanVanillaOptionFunction. getPayoffAtExpiryTrinomial(DoubleArray stateValue)DoubleArrayOptionFunction. getPayoffAtExpiryTrinomial(DoubleArray stateValue)Computes payoff at expiry for trinomial tree.static ConstantContinuousSingleBarrierKnockoutFunctionConstantContinuousSingleBarrierKnockoutFunction. of(double strike, double timeToExpiry, PutCall putCall, int numberOfSteps, BarrierType barrierType, double barrierLevel, DoubleArray rebate)Obtains an instance. -
Uses of DoubleArray in com.opengamma.strata.pricer.impl.volatility.smile
Methods in com.opengamma.strata.pricer.impl.volatility.smile that return DoubleArray Modifier and Type Method Description protected DoubleArraySabrModelFitter. getMaximumStep()protected abstract DoubleArraySmileModelFitter. getMaximumStep()Obtains the maximum number of iterations.DoubleArraySabrFormulaData. getParameters()Gets the model parameters.DoubleArraySsviFormulaData. getParameters()Gets the model parameters.Methods in com.opengamma.strata.pricer.impl.volatility.smile that return types with arguments of type DoubleArray Modifier and Type Method Description protected Function<DoubleArray,Boolean>SmileModelFitter. getConstraintFunction(NonLinearParameterTransforms t)Obtains the constraint function.protected Function<DoubleArray,DoubleMatrix>SmileModelFitter. getModelJacobianFunction()Obtains Jacobian function of the smile model.protected Function<DoubleArray,DoubleArray>SmileModelFitter. getModelValueFunction()Obtains volatility function of the smile model.protected Function<DoubleArray,DoubleArray>SmileModelFitter. getModelValueFunction()Obtains volatility function of the smile model.Methods in com.opengamma.strata.pricer.impl.volatility.smile with parameters of type DoubleArray Modifier and Type Method Description protected NonLinearParameterTransformsSabrModelFitter. getTransform(DoubleArray start)protected NonLinearParameterTransformsSabrModelFitter. getTransform(DoubleArray start, BitSet fixed)protected abstract NonLinearParameterTransformsSmileModelFitter. getTransform(DoubleArray start)Obtains the nonlinear transformation of parameters from the initial values.protected abstract NonLinearParameterTransformsSmileModelFitter. getTransform(DoubleArray start, BitSet fixed)Obtains the nonlinear transformation of parameters from the initial values with some parameters fixed.LeastSquareResultsWithTransformSmileModelFitter. solve(DoubleArray start)Solves using the default NonLinearParameterTransforms for the concrete implementation.LeastSquareResultsWithTransformSmileModelFitter. solve(DoubleArray start, NonLinearParameterTransforms transform)Solve using a user supplied NonLinearParameterTransforms.LeastSquareResultsWithTransformSmileModelFitter. solve(DoubleArray start, BitSet fixed)Solve using the default NonLinearParameterTransforms for the concrete implementation with some parameters fixed to their initial values (indicated by fixed).SabrFormulaDataSabrModelFitter. toSmileModelData(DoubleArray modelParameters)abstract TSmileModelFitter. toSmileModelData(DoubleArray modelParameters)ObtainsSmileModelDatainstance from the model parameters.Constructors in com.opengamma.strata.pricer.impl.volatility.smile with parameters of type DoubleArray Constructor Description SabrModelFitter(double forward, DoubleArray strikes, double timeToExpiry, DoubleArray impliedVols, DoubleArray error, VolatilityFunctionProvider<SabrFormulaData> model)Constructs SABR model fitter from forward, strikes, time to expiry, implied volatilities and error values.SabrModelFitter(double forward, DoubleArray strikes, double timeToExpiry, DoubleArray impliedVols, DoubleArray error, SabrVolatilityFormula sabrVolatilityFormula)Constructs SABR model fitter from forward, strikes, time to expiry, implied volatilities and error values.SmileModelFitter(double forward, DoubleArray strikes, double timeToExpiry, DoubleArray impliedVols, DoubleArray error, VolatilityFunctionProvider<T> model)Constructs smile model fitter from forward, strikes, time to expiry, implied volatilities and error values. -
Uses of DoubleArray in com.opengamma.strata.pricer.index
Methods in com.opengamma.strata.pricer.index that return DoubleArray Modifier and Type Method Description DoubleArrayHullWhiteIborFutureTradePricer. presentValueSensitivityModelParamsHullWhite(ResolvedIborFutureTrade trade, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)Calculates the present value sensitivity to piecewise constant volatility parameters of the Hull-White model.DoubleArrayHullWhiteIborFutureProductPricer. priceSensitivityModelParamsHullWhite(ResolvedIborFuture future, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)Calculates the price sensitivity to piecewise constant volatility parameters of the Hull-White model. -
Uses of DoubleArray in com.opengamma.strata.pricer.model
Methods in com.opengamma.strata.pricer.model that return DoubleArray Modifier and Type Method Description DoubleArrayHullWhiteOneFactorPiecewiseConstantParameters. getVolatility()Gets the volatility parameters.DoubleArrayHullWhiteOneFactorPiecewiseConstantParameters. getVolatilityTime()Gets the times separating the constant volatility periods.Methods in com.opengamma.strata.pricer.model with parameters of type DoubleArray Modifier and Type Method Description static HullWhiteOneFactorPiecewiseConstantParametersHullWhiteOneFactorPiecewiseConstantParameters. of(double meanReversion, DoubleArray volatility, DoubleArray volatilityTime)Obtains an instance from the model parameters.HullWhiteOneFactorPiecewiseConstantParametersHullWhiteOneFactorPiecewiseConstantParameters. withVolatility(DoubleArray volatility)Returns a copy with the volatility parameters changed. -
Uses of DoubleArray in com.opengamma.strata.pricer.option
Methods in com.opengamma.strata.pricer.option that return DoubleArray Modifier and Type Method Description DoubleArrayRawOptionData. getStrikes()Gets the strike values.Methods in com.opengamma.strata.pricer.option that return types with arguments of type DoubleArray Modifier and Type Method Description Pair<DoubleArray,DoubleArray>RawOptionData. availableSmileAtExpiry(Period expiry)For a given expiration returns all the data available.Pair<DoubleArray,DoubleArray>RawOptionData. availableSmileAtExpiry(Period expiry)For a given expiration returns all the data available.Methods in com.opengamma.strata.pricer.option with parameters of type DoubleArray Modifier and Type Method Description static RawOptionDataRawOptionData. of(List<Period> expiries, DoubleArray strikes, ValueType strikeType, DoubleMatrix data, DoubleMatrix error, ValueType dataType)Obtains an instance of the raw data with error.static RawOptionDataRawOptionData. of(List<Period> expiries, DoubleArray strikes, ValueType strikeType, DoubleMatrix data, ValueType dataType)Obtains an instance of the raw volatility.static RawOptionDataRawOptionData. ofBlackVolatility(List<Period> expiries, DoubleArray strikes, ValueType strikeType, DoubleMatrix data, DoubleMatrix error, Double shift)Obtains an instance of the raw data with error for shifted Black (log-normal) volatility.static RawOptionDataRawOptionData. ofBlackVolatility(List<Period> expiries, DoubleArray strikes, ValueType strikeType, DoubleMatrix data, Double shift)Obtains an instance of the raw volatility for shifted Black (log-normal) volatility. -
Uses of DoubleArray in com.opengamma.strata.pricer.rate
Methods in com.opengamma.strata.pricer.rate with parameters of type DoubleArray Modifier and Type Method Description CurrencyParameterSensitivitiesDiscountIborIndexRates. createParameterSensitivity(Currency currency, DoubleArray sensitivities)CurrencyParameterSensitivitiesDiscountOvernightIndexRates. createParameterSensitivity(Currency currency, DoubleArray sensitivities)CurrencyParameterSensitivitiesHistoricIborIndexRates. createParameterSensitivity(Currency currency, DoubleArray sensitivities)CurrencyParameterSensitivitiesHistoricOvernightIndexRates. createParameterSensitivity(Currency currency, DoubleArray sensitivities)CurrencyParameterSensitivitiesHistoricPriceIndexValues. createParameterSensitivity(Currency currency, DoubleArray sensitivities)CurrencyParameterSensitivitiesIborIndexRates. createParameterSensitivity(Currency currency, DoubleArray sensitivities)Creates the parameter sensitivity when the sensitivity values are known.CurrencyParameterSensitivitiesOvernightIndexRates. createParameterSensitivity(Currency currency, DoubleArray sensitivities)Creates the parameter sensitivity when the sensitivity values are known.CurrencyParameterSensitivitiesPriceIndexValues. createParameterSensitivity(Currency currency, DoubleArray sensitivities)Creates the parameter sensitivity when the sensitivity values are known.CurrencyParameterSensitivitiesSimpleIborIndexRates. createParameterSensitivity(Currency currency, DoubleArray sensitivities)CurrencyParameterSensitivitiesSimplePriceIndexValues. createParameterSensitivity(Currency currency, DoubleArray sensitivities) -
Uses of DoubleArray in com.opengamma.strata.pricer.swaption
Methods in com.opengamma.strata.pricer.swaption that return DoubleArray Modifier and Type Method Description DoubleArrayHullWhiteSwaptionPhysicalProductPricer. presentValueSensitivityModelParamsHullWhite(ResolvedSwaption swaption, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)Calculates the present value sensitivity to piecewise constant volatility parameters of the Hull-White model.DoubleArrayHullWhiteSwaptionPhysicalTradePricer. presentValueSensitivityModelParamsHullWhite(ResolvedSwaptionTrade trade, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider)Calculates the present value sensitivity piecewise constant volatility parameters of the Hull-White model.Methods in com.opengamma.strata.pricer.swaption that return types with arguments of type DoubleArray Modifier and Type Method Description Pair<DoubleArray,DoubleArray>SabrSwaptionCalibrator. blackVolatilitiesShiftedFromBlackVolatilitiesShifted(double forward, double shiftOutput, double timeToExpiry, DoubleArray strikes, DoubleArray blackVolatilities, double shiftInput)Creates an array of shifted Black volatilities from shifted Black volatilities with a different shift and the sensitivities of the Black volatilities outputs with respect to the normal volatilities inputs.Pair<DoubleArray,DoubleArray>SabrSwaptionCalibrator. blackVolatilitiesShiftedFromBlackVolatilitiesShifted(double forward, double shiftOutput, double timeToExpiry, DoubleArray strikes, DoubleArray blackVolatilities, double shiftInput)Creates an array of shifted Black volatilities from shifted Black volatilities with a different shift and the sensitivities of the Black volatilities outputs with respect to the normal volatilities inputs.Pair<DoubleArray,DoubleArray>SabrSwaptionCalibrator. blackVolatilitiesShiftedFromNormalVolatilities(double forward, double shiftOutput, double timeToExpiry, DoubleArray strikes, DoubleArray normalVolatilities)Creates an array of shifted Black volatilities from Normal volatilities and the sensitivities of the Black volatilities with respect to the normal volatilities inputs.Pair<DoubleArray,DoubleArray>SabrSwaptionCalibrator. blackVolatilitiesShiftedFromNormalVolatilities(double forward, double shiftOutput, double timeToExpiry, DoubleArray strikes, DoubleArray normalVolatilities)Creates an array of shifted Black volatilities from Normal volatilities and the sensitivities of the Black volatilities with respect to the normal volatilities inputs.Pair<DoubleArray,DoubleArray>SabrSwaptionCalibrator. blackVolatilitiesShiftedFromPrices(double forward, double shiftOutput, double timeToExpiry, DoubleArray strikes, DoubleArray prices)Creates an array of shifted Black volatilities from option prices and the sensitivities of the Black volatilities with respect to the price inputs.Pair<DoubleArray,DoubleArray>SabrSwaptionCalibrator. blackVolatilitiesShiftedFromPrices(double forward, double shiftOutput, double timeToExpiry, DoubleArray strikes, DoubleArray prices)Creates an array of shifted Black volatilities from option prices and the sensitivities of the Black volatilities with respect to the price inputs.Pair<LeastSquareResultsWithTransform,DoubleArray>SabrSwaptionCalibrator. calibrateLsShiftedFromBlackVolatilities(BusinessDayAdjustment bda, ZonedDateTime calibrationDateTime, DayCount dayCount, Period periodToExpiry, double forward, DoubleArray strikesLike, ValueType strikeType, DoubleArray blackVolatilitiesInput, double shiftInput, DoubleArray startParameters, BitSet fixedParameters, double shiftOutput)Calibrate the SABR parameters to a set of Black volatilities at given moneyness by least square.Pair<LeastSquareResultsWithTransform,DoubleArray>SabrSwaptionCalibrator. calibrateLsShiftedFromNormalVolatilities(BusinessDayAdjustment bda, ZonedDateTime calibrationDateTime, DayCount dayCount, Period periodToExpiry, double forward, DoubleArray strikesLike, ValueType strikeType, DoubleArray normalVolatilities, DoubleArray startParameters, BitSet fixedParameters, double shiftOutput)Calibrate the SABR parameters to a set of normal volatilities at given moneyness.Pair<LeastSquareResultsWithTransform,DoubleArray>SabrSwaptionCalibrator. calibrateLsShiftedFromPrices(BusinessDayAdjustment bda, ZonedDateTime calibrationDateTime, DayCount dayCount, Period periodToExpiry, double forward, DoubleArray strikesLike, ValueType strikeType, DoubleArray prices, DoubleArray startParameters, BitSet fixedParameters, double shiftOutput)Calibrate the SABR parameters to a set of option prices at given moneyness.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>SabrParametersSwaptionVolatilities.Meta. dataSensitivityAlpha()The meta-property for thedataSensitivityAlphaproperty.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>SabrParametersSwaptionVolatilities.Meta. dataSensitivityBeta()The meta-property for thedataSensitivityBetaproperty.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>SabrParametersSwaptionVolatilities.Meta. dataSensitivityNu()The meta-property for thedataSensitivityNuproperty.org.joda.beans.MetaProperty<ImmutableList<DoubleArray>>SabrParametersSwaptionVolatilities.Meta. dataSensitivityRho()The meta-property for thedataSensitivityRhoproperty.Optional<ImmutableList<DoubleArray>>SabrParametersSwaptionVolatilities. getDataSensitivityAlpha()Gets the sensitivity of the Alpha parameters to the raw data used for calibration.Optional<ImmutableList<DoubleArray>>SabrParametersSwaptionVolatilities. getDataSensitivityBeta()Gets the sensitivity of the Beta parameters to the raw data used for calibration.Optional<ImmutableList<DoubleArray>>SabrParametersSwaptionVolatilities. getDataSensitivityNu()Gets the sensitivity of the Nu parameters to the raw data used for calibration.Optional<ImmutableList<DoubleArray>>SabrParametersSwaptionVolatilities. getDataSensitivityRho()Gets the sensitivity of the Rho parameters to the raw data used for calibration.Methods in com.opengamma.strata.pricer.swaption with parameters of type DoubleArray Modifier and Type Method Description Pair<DoubleArray,DoubleArray>SabrSwaptionCalibrator. blackVolatilitiesShiftedFromBlackVolatilitiesShifted(double forward, double shiftOutput, double timeToExpiry, DoubleArray strikes, DoubleArray blackVolatilities, double shiftInput)Creates an array of shifted Black volatilities from shifted Black volatilities with a different shift and the sensitivities of the Black volatilities outputs with respect to the normal volatilities inputs.Pair<DoubleArray,DoubleArray>SabrSwaptionCalibrator. blackVolatilitiesShiftedFromNormalVolatilities(double forward, double shiftOutput, double timeToExpiry, DoubleArray strikes, DoubleArray normalVolatilities)Creates an array of shifted Black volatilities from Normal volatilities and the sensitivities of the Black volatilities with respect to the normal volatilities inputs.Pair<DoubleArray,DoubleArray>SabrSwaptionCalibrator. blackVolatilitiesShiftedFromPrices(double forward, double shiftOutput, double timeToExpiry, DoubleArray strikes, DoubleArray prices)Creates an array of shifted Black volatilities from option prices and the sensitivities of the Black volatilities with respect to the price inputs.Pair<Double,Double>SabrSwaptionCalibrator. calibrateAtmShiftedFromBlackVolatilities(BusinessDayAdjustment bda, ZonedDateTime calibrationDateTime, DayCount dayCount, Period periodToExpiry, double forward, double blackVolatility, double shiftInput, DoubleArray startParameters, double shiftOutput)Calibrate the SABR alpha parameter to an ATM Black volatility and compute the derivative of the result with respect to the input volatility.Pair<Double,Double>SabrSwaptionCalibrator. calibrateAtmShiftedFromNormalVolatilities(BusinessDayAdjustment bda, ZonedDateTime calibrationDateTime, DayCount dayCount, Period periodToExpiry, double forward, double normalVolatility, DoubleArray startParameters, double shiftOutput)Calibrate the SABR alpha parameter to an ATM normal volatility and compute the derivative of the result with respect to the input volatility.Pair<LeastSquareResultsWithTransform,DoubleArray>SabrSwaptionCalibrator. calibrateLsShiftedFromBlackVolatilities(BusinessDayAdjustment bda, ZonedDateTime calibrationDateTime, DayCount dayCount, Period periodToExpiry, double forward, DoubleArray strikesLike, ValueType strikeType, DoubleArray blackVolatilitiesInput, double shiftInput, DoubleArray startParameters, BitSet fixedParameters, double shiftOutput)Calibrate the SABR parameters to a set of Black volatilities at given moneyness by least square.Pair<LeastSquareResultsWithTransform,DoubleArray>SabrSwaptionCalibrator. calibrateLsShiftedFromNormalVolatilities(BusinessDayAdjustment bda, ZonedDateTime calibrationDateTime, DayCount dayCount, Period periodToExpiry, double forward, DoubleArray strikesLike, ValueType strikeType, DoubleArray normalVolatilities, DoubleArray startParameters, BitSet fixedParameters, double shiftOutput)Calibrate the SABR parameters to a set of normal volatilities at given moneyness.Pair<LeastSquareResultsWithTransform,DoubleArray>SabrSwaptionCalibrator. calibrateLsShiftedFromPrices(BusinessDayAdjustment bda, ZonedDateTime calibrationDateTime, DayCount dayCount, Period periodToExpiry, double forward, DoubleArray strikesLike, ValueType strikeType, DoubleArray prices, DoubleArray startParameters, BitSet fixedParameters, double shiftOutput)Calibrate the SABR parameters to a set of option prices at given moneyness.SabrParametersSwaptionVolatilities.BuilderSabrParametersSwaptionVolatilities.Builder. dataSensitivityAlpha(DoubleArray... dataSensitivityAlpha)Sets thedataSensitivityAlphaproperty in the builder from an array of objects.SabrParametersSwaptionVolatilities.BuilderSabrParametersSwaptionVolatilities.Builder. dataSensitivityBeta(DoubleArray... dataSensitivityBeta)Sets thedataSensitivityBetaproperty in the builder from an array of objects.SabrParametersSwaptionVolatilities.BuilderSabrParametersSwaptionVolatilities.Builder. dataSensitivityNu(DoubleArray... dataSensitivityNu)Sets thedataSensitivityNuproperty in the builder from an array of objects.SabrParametersSwaptionVolatilities.BuilderSabrParametersSwaptionVolatilities.Builder. dataSensitivityRho(DoubleArray... dataSensitivityRho)Sets thedataSensitivityRhoproperty in the builder from an array of objects.Method parameters in com.opengamma.strata.pricer.swaption with type arguments of type DoubleArray Modifier and Type Method Description SabrParametersSwaptionVolatilities.BuilderSabrParametersSwaptionVolatilities.Builder. dataSensitivityAlpha(List<DoubleArray> dataSensitivityAlpha)Sets the sensitivity of the Alpha parameters to the raw data used for calibration.SabrParametersSwaptionVolatilities.BuilderSabrParametersSwaptionVolatilities.Builder. dataSensitivityBeta(List<DoubleArray> dataSensitivityBeta)Sets the sensitivity of the Beta parameters to the raw data used for calibration.SabrParametersSwaptionVolatilities.BuilderSabrParametersSwaptionVolatilities.Builder. dataSensitivityNu(List<DoubleArray> dataSensitivityNu)Sets the sensitivity of the Nu parameters to the raw data used for calibration.SabrParametersSwaptionVolatilities.BuilderSabrParametersSwaptionVolatilities.Builder. dataSensitivityRho(List<DoubleArray> dataSensitivityRho)Sets the sensitivity of the Rho parameters to the raw data used for calibration.
-