Uses of Interface
org.djunits.unit.UnitInterface
Packages that use UnitInterface
Package
Description
Methods to format quantity-related values for display.
The quantity package stores information about quantities with their units.
Definition classes for quantities.
Base classes to encode and store units.
The org.djunits.si package contains classes that can work with and manipulate SI prefixes and SI dimensions.
Generic functions for Quantity, Vector and Matrix.
1-element vector and matrix classes with a unit.
2-element vector and matrix classes with a unit.
3-element vector and matrix classes with a unit.
Definition classes for vectors and matrices.
Square matrix implementations with dimension N.
Rectangular matrix implementations with dimension NxM.
Storage objects for larger vectors and matrices (dense/sparse, double/float).
Two-dimensonal tables with quantities.
-
Uses of UnitInterface in org.djunits.formatter
Fields in org.djunits.formatter declared as UnitInterfaceModifier and TypeFieldDescription(package private) UnitInterface<?>FormatContext.displayUnitDisplay unit to use.(package private) UnitInterface<?>Formatter.unitthe unit to express the value in.Methods in org.djunits.formatter with parameters of type UnitInterfaceModifier and TypeMethodDescriptionFormat.setDisplayUnit(UnitInterface<?> unit) Set the display unit to use. -
Uses of UnitInterface in org.djunits.quantity
Classes in org.djunits.quantity that implement UnitInterfaceModifier and TypeClassDescriptionstatic classAbsorbedDose.Unit encodes the units of absorbed dose (of ionizing radiation).static classAcceleration.Unit encodes the units of acceleration.static classAmountOfSubstance.Unit encodes the units of amount of substance (base unit is mol).static classAngle.Unit encodes the units of angle (radians, degrees).static classAngularAcceleration.Unit encodes the units of angle (radians or degrees per second squared).static classAngularVelocity.Unit encodes the units of angle (radians, degrees).static classArea.Unit encodes the area unit (length x length).static classArealObjectDensity.Unit encodes the unit for number of objects per unit of area.static classCatalyticActivity.Unit encodes the units of the speed of a chamical reaction, and is expressed in mol/s.static classDensity.Unit encodes the units of density based on mass per volume.static classDuration.Unit encodes the units of relative time.static classElectricalCapacitance.Unit encodes the units of capacitance (in farad).static classElectricalConductance.Unit encodes the units of electrical conductance, and is expressed in Siemens.static classElectricalInductance.Unit encodes the units of electromagnetic inductance.static classElectricalResistance.Unit encodes the opposition to the flow of electric current.static classElectricCharge.Unit is a unit of electric charge and is expressed in Coulomb.static classElectricCurrent.Unit encodes the units of electric current (A).static classElectricPotential.Unit encodes the units of electric potential (difference)static classEnergy.Unit encodes the units of energy.static classEquivalentDose.Unit encodes the unit of radiation exposure.static classFlowMass.Unit encodes the units of mass flow.static classFlowVolume.Unit encodes the units of volume flow.static classForce.Unit encodes the units of force.static classFrequency.Unit encodes the units of frequency.static classIlluminance.Unit encodes the units of illuminance.static classLength.Unit encodes the length unit.static classLinearDensity.Unit encodes unit for mass per unit length.static classLinearObjectDensity.Unit encodes the unit for the number of objects per unit of length.static classLuminousFlux.Unit encodes the units of total perceived power of light emitted by a source.static classLuminousIntensity.Unit encodes the units of luminous flux emitted per unit solid angle.static classMagneticFlux.Unit encodes the units of total magnetic field passing through a given area.static classMagneticFluxDensity.Unit encodes the units of strength of the magnetic field per unit area.static classMass.Unit encodes the unit of the amount of matter in an object.static classMomentum.Unit encodes a unit for the product of an object's mass and velocity.static classPower.Unit encodes the units for the rate of energy transfer or work done per unit time.static classPressure.Unit encodes the units of force exerted per unit area.static classRadioActivity.Unit encodes the units of radioactivity.static classSolidAngle.Unit encodes the units of solid angles.static classSpeed.Unit encodes the units of the rate of change of a position over time.static classTemperature.Unit encodes the units of relative and absolute temperature.static classTorque.Unit encodes the units of rotational force about an axis, measured in newton meters (Nm).static classVolume.Unit encodes the volume unit (length x length x length).static classVolumetricObjectDensity.Unit encodes the unit for number of objects per unit of volume.Methods in org.djunits.quantity with parameters of type UnitInterfaceModifier and TypeMethodDescriptionAbsorbedDose.instantiateSi(double siValue, UnitInterface<AbsorbedDose> displayUnit) Acceleration.instantiateSi(double siValue, UnitInterface<Acceleration> displayUnit) AmountOfSubstance.instantiateSi(double siValue, UnitInterface<AmountOfSubstance> displayUnit) Angle.instantiateSi(double siValue, UnitInterface<Angle> displayUnit) AngularAcceleration.instantiateSi(double siValue, UnitInterface<AngularAcceleration> displayUnit) AngularVelocity.instantiateSi(double siValue, UnitInterface<AngularVelocity> displayUnit) Area.instantiateSi(double siValue, UnitInterface<Area> displayUnit) ArealObjectDensity.instantiateSi(double siValue, UnitInterface<ArealObjectDensity> displayUnit) CatalyticActivity.instantiateSi(double siValue, UnitInterface<CatalyticActivity> displayUnit) Density.instantiateSi(double siValue, UnitInterface<Density> displayUnit) Dimensionless.instantiateSi(double siValue, UnitInterface<Dimensionless> displayUnit) Duration.instantiateSi(double siValue, UnitInterface<Duration> displayUnit) ElectricalCapacitance.instantiateSi(double siValue, UnitInterface<ElectricalCapacitance> displayUnit) ElectricalConductance.instantiateSi(double siValue, UnitInterface<ElectricalConductance> displayUnit) ElectricalInductance.instantiateSi(double siValue, UnitInterface<ElectricalInductance> displayUnit) ElectricalResistance.instantiateSi(double siValue, UnitInterface<ElectricalResistance> displayUnit) ElectricCharge.instantiateSi(double siValue, UnitInterface<ElectricCharge> displayUnit) ElectricCurrent.instantiateSi(double siValue, UnitInterface<ElectricCurrent> displayUnit) ElectricPotential.instantiateSi(double siValue, UnitInterface<ElectricPotential> displayUnit) Energy.instantiateSi(double siValue, UnitInterface<Energy> displayUnit) EquivalentDose.instantiateSi(double siValue, UnitInterface<EquivalentDose> displayUnit) FlowMass.instantiateSi(double siValue, UnitInterface<FlowMass> displayUnit) FlowVolume.instantiateSi(double siValue, UnitInterface<FlowVolume> displayUnit) Force.instantiateSi(double siValue, UnitInterface<Force> displayUnit) Frequency.instantiateSi(double siValue, UnitInterface<Frequency> displayUnit) Illuminance.instantiateSi(double siValue, UnitInterface<Illuminance> displayUnit) Length.instantiateSi(double siValue, UnitInterface<Length> displayUnit) LinearDensity.instantiateSi(double siValue, UnitInterface<LinearDensity> displayUnit) LinearObjectDensity.instantiateSi(double siValue, UnitInterface<LinearObjectDensity> displayUnit) LuminousFlux.instantiateSi(double siValue, UnitInterface<LuminousFlux> displayUnit) LuminousIntensity.instantiateSi(double siValue, UnitInterface<LuminousIntensity> displayUnit) MagneticFlux.instantiateSi(double siValue, UnitInterface<MagneticFlux> displayUnit) MagneticFluxDensity.instantiateSi(double siValue, UnitInterface<MagneticFluxDensity> displayUnit) Mass.instantiateSi(double siValue, UnitInterface<Mass> displayUnit) Momentum.instantiateSi(double siValue, UnitInterface<Momentum> displayUnit) Power.instantiateSi(double siValue, UnitInterface<Power> displayUnit) Pressure.instantiateSi(double siValue, UnitInterface<Pressure> displayUnit) RadioActivity.instantiateSi(double siValue, UnitInterface<RadioActivity> displayUnit) SIQuantity.instantiateSi(double siValue, UnitInterface<SIQuantity> displayUnit) SolidAngle.instantiateSi(double siValue, UnitInterface<SolidAngle> displayUnit) Speed.instantiateSi(double siValue, UnitInterface<Speed> displayUnit) TemperatureDifference.instantiateSi(double siValue, UnitInterface<TemperatureDifference> displayUnit) Torque.instantiateSi(double siValue, UnitInterface<Torque> displayUnit) Volume.instantiateSi(double siValue, UnitInterface<Volume> displayUnit) VolumetricObjectDensity.instantiateSi(double siValue, UnitInterface<VolumetricObjectDensity> displayUnit) AbsorbedDose.Unit.ofSi(double si, UnitInterface<AbsorbedDose> displayUnit) Acceleration.Unit.ofSi(double si, UnitInterface<Acceleration> displayUnit) AmountOfSubstance.Unit.ofSi(double si, UnitInterface<AmountOfSubstance> displayUnit) Angle.Unit.ofSi(double si, UnitInterface<Angle> displayUnit) AngularAcceleration.Unit.ofSi(double si, UnitInterface<AngularAcceleration> displayUnit) AngularVelocity.Unit.ofSi(double si, UnitInterface<AngularVelocity> displayUnit) Area.Unit.ofSi(double si, UnitInterface<Area> displayUnit) ArealObjectDensity.Unit.ofSi(double si, UnitInterface<ArealObjectDensity> displayUnit) CatalyticActivity.Unit.ofSi(double si, UnitInterface<CatalyticActivity> displayUnit) Density.Unit.ofSi(double si, UnitInterface<Density> displayUnit) Duration.Unit.ofSi(double si, UnitInterface<Duration> displayUnit) ElectricalCapacitance.Unit.ofSi(double si, UnitInterface<ElectricalCapacitance> displayUnit) ElectricalConductance.Unit.ofSi(double si, UnitInterface<ElectricalConductance> displayUnit) ElectricalInductance.Unit.ofSi(double si, UnitInterface<ElectricalInductance> displayUnit) ElectricalResistance.Unit.ofSi(double si, UnitInterface<ElectricalResistance> displayUnit) ElectricCharge.Unit.ofSi(double si, UnitInterface<ElectricCharge> displayUnit) ElectricCurrent.Unit.ofSi(double si, UnitInterface<ElectricCurrent> displayUnit) ElectricPotential.Unit.ofSi(double si, UnitInterface<ElectricPotential> displayUnit) Energy.Unit.ofSi(double si, UnitInterface<Energy> displayUnit) EquivalentDose.Unit.ofSi(double si, UnitInterface<EquivalentDose> displayUnit) FlowMass.Unit.ofSi(double si, UnitInterface<FlowMass> displayUnit) FlowVolume.Unit.ofSi(double si, UnitInterface<FlowVolume> displayUnit) Force.Unit.ofSi(double si, UnitInterface<Force> displayUnit) Frequency.Unit.ofSi(double si, UnitInterface<Frequency> displayUnit) Illuminance.Unit.ofSi(double si, UnitInterface<Illuminance> displayUnit) Length.Unit.ofSi(double si, UnitInterface<Length> displayUnit) LinearDensity.Unit.ofSi(double si, UnitInterface<LinearDensity> displayUnit) LinearObjectDensity.Unit.ofSi(double si, UnitInterface<LinearObjectDensity> displayUnit) LuminousFlux.Unit.ofSi(double si, UnitInterface<LuminousFlux> displayUnit) LuminousIntensity.Unit.ofSi(double si, UnitInterface<LuminousIntensity> displayUnit) MagneticFlux.Unit.ofSi(double si, UnitInterface<MagneticFlux> displayUnit) MagneticFluxDensity.Unit.ofSi(double si, UnitInterface<MagneticFluxDensity> displayUnit) Mass.Unit.ofSi(double si, UnitInterface<Mass> displayUnit) Momentum.Unit.ofSi(double si, UnitInterface<Momentum> displayUnit) Power.Unit.ofSi(double si, UnitInterface<Power> displayUnit) Pressure.Unit.ofSi(double si, UnitInterface<Pressure> displayUnit) RadioActivity.Unit.ofSi(double si, UnitInterface<RadioActivity> displayUnit) SolidAngle.Unit.ofSi(double si, UnitInterface<SolidAngle> displayUnit) Speed.Unit.ofSi(double si, UnitInterface<Speed> displayUnit) Temperature.Unit.ofSi(double si, UnitInterface<TemperatureDifference> displayUnit) Torque.Unit.ofSi(double si, UnitInterface<Torque> displayUnit) Volume.Unit.ofSi(double si, UnitInterface<Volume> displayUnit) VolumetricObjectDensity.Unit.ofSi(double si, UnitInterface<VolumetricObjectDensity> displayUnit) -
Uses of UnitInterface in org.djunits.quantity.def
Methods in org.djunits.quantity.def that return UnitInterfaceMethods in org.djunits.quantity.def with parameters of type UnitInterfaceModifier and TypeMethodDescription<TQ extends Quantity<TQ>>
TQQuantity.as(UnitInterface<TQ> targetUnit) Return the quantity 'as' a known quantity, using a unit to express the result in.AbsQuantity.format(UnitInterface<Q> targetUnit) String representation of this quantity, expressed in the specified unit.Quantity.format(UnitInterface<Q> targetUnit) String representation of this quantity, expressed in the specified unit.doubleAbsQuantity.getInUnit(UnitInterface<Q> targetUnit) Retrieve the relative quantity value converted into some specified unit.doubleQuantity.getInUnit(UnitInterface<Q> targetUnit) Retrieve the value converted into some specified unit.Quantity.instantiate(double valueInUnit, UnitInterface<Q> unit) Instantiate a quantity with a value and a unit.abstract QQuantity.instantiateSi(double siValue, UnitInterface<Q> displayUnit) Instantiate a quantity with an SI or base value, and a display unit.Constructors in org.djunits.quantity.def with parameters of type UnitInterfaceModifierConstructorDescriptionQuantity(double siValue, UnitInterface<Q> displayUnit, boolean useSi) Instantiate a quantity with an SI or base value and a display unit. -
Uses of UnitInterface in org.djunits.unit
Classes in org.djunits.unit that implement UnitInterfaceModifier and TypeClassDescriptionclassAbstractUnit<Q extends Quantity<Q>>The AbstractUnit is the parent class of all units, and encodes the common behavior of the units.classUnitless encodes a unit without dimensions, e.g., to encode a constant.Methods in org.djunits.unit with type parameters of type UnitInterfaceModifier and TypeMethodDescriptionstatic <U extends UnitInterface<?>>
ULook up a unit in the registry, based on its textual abbreviation.Methods in org.djunits.unit that return UnitInterfaceModifier and TypeMethodDescriptionAbstractUnit.deriveUnit(String abbreviation, String name, double scaleFactor, UnitSystem unitSystem) Return a linearly scaled derived unit for this unit, with an abbreviation and scale factor.abstract UnitInterface<Q>AbstractUnit.deriveUnit(String textualAbbreviation, String displayAbbreviation, String name, double scaleFactor, UnitSystem unitSystem, SIPrefix siPrefix) Return a linearly scaled derived unit for this unit, with textual abbreviation(s) and a display abbreviation.AbstractUnit.generateSiPrefixes(boolean kilo, boolean perUnit) Generate and register the units with all SI-prefixes.UnitInterface.getBaseUnit()Return the base unit for this unit.Methods in org.djunits.unit that return types with arguments of type UnitInterfaceModifier and TypeMethodDescriptionstatic Map<String,Map<String, UnitInterface<?>>> Units.registeredUnits()Return a safe copy of the registered units, e.g. to build pick lists in a user interface.Methods in org.djunits.unit with parameters of type UnitInterfaceModifier and TypeMethodDescriptionUnitInterface.ofSi(double si, UnitInterface<Q> displayUnit) Return a quantity for this unit with the SI-value and the provided display unit.Unitless.ofSi(double si, UnitInterface<Dimensionless> displayUnit) static voidUnits.register(UnitInterface<?> unit) Register a unit so it can be found based on its textual abbreviations.static voidUnits.unregister(UnitInterface<?> unit) Unregister a unit, e.g. in a unit test.Method parameters in org.djunits.unit with type arguments of type UnitInterfaceModifier and TypeMethodDescriptionstatic StringUnits.localizedQuantityName(Class<? extends UnitInterface<?>> unitClass) Get the localized unit name for a unit class. -
Uses of UnitInterface in org.djunits.unit.si
Classes in org.djunits.unit.si that implement UnitInterfaceModifier and TypeClassDescriptionclassSIUnit stores the dimensionality of a unit using the SI standards.Methods in org.djunits.unit.si with parameters of type UnitInterface -
Uses of UnitInterface in org.djunits.value
Methods in org.djunits.value that return UnitInterfaceMethods in org.djunits.value with parameters of type UnitInterfaceModifier and TypeMethodDescriptionValue.format(UnitInterface<Q> displayUnit) Return a description of this value with the values expressed in the specified unit. -
Uses of UnitInterface in org.djunits.vecmat.d1
Methods in org.djunits.vecmat.d1 with parameters of type UnitInterfaceModifier and TypeMethodDescriptionMatrix1x1.as(UnitInterface<TQ> targetUnit) Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.Vector1.as(UnitInterface<TQ> targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.Matrix1x1.instantiateSi(double[] siNew, UnitInterface<Q> displayUnit) Vector1.instantiateSi(double[] siNew, UnitInterface<Q> displayUnit) Vector1.instantiateSi(double xSiNew, UnitInterface<Q> displayUnit) Return a 1-vector with x value in SI or BASE units.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix1x1<A,Q> AbsMatrix1x1.of(double[][] gridInUnit, UnitInterface<Q> unit, R reference) Create an AbsMatrix1x1 with a unit, based on a 2-dimensional grid.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix1x1<A,Q> AbsMatrix1x1.of(double[] dataInUnit, UnitInterface<Q> unit, R reference) Create an AbsMatrix1x1 without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix1x1<A,Q> AbsMatrix1x1.of(double xInUnit, UnitInterface<Q> displayUnit, R reference) Create an AbsMatrix1x1 without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector1<A,Q> AbsVector1.of(double[] dataInUnit, UnitInterface<Q> unit, R reference) Create an AbsVector1 without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector1<A,Q> AbsVector1.of(double xInUnit, UnitInterface<Q> unit, R reference) Create an AbsVector1 without needing generics.Matrix1x1.of(double[][] gridInUnit, UnitInterface<Q> unit) Create a new Matrix1x1 with a unit, based on a 2-dimensional grid.Matrix1x1.of(double[] dataInUnit, UnitInterface<Q> unit) Create a Matrix1x1 without needing generics.Matrix1x1.of(double xInUnit, UnitInterface<Q> unit) Create a Matrix1x1 without needing generics.Vector1.of(double[] dataInUnit, UnitInterface<Q> unit) Create a Vector1 without needing generics.Vector1.of(double xInUnit, UnitInterface<Q> unit) Create a Vector1 without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix1x1<A,Q> AbsMatrix1x1.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit, R reference) Create an AbsMatrix1x1 with a unit, based on a 2-dimensional grid with SI-values.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix1x1<A,Q> AbsMatrix1x1.ofSi(double[] dataSi, UnitInterface<Q> displayUnit, R reference) Create an AbsMatrix1x1 without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector1<A,Q> AbsVector1.ofSi(double[] dataSi, UnitInterface<Q> displayUnit, R reference) Create an AbsVector1 without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector1<A,Q> AbsVector1.ofSi(double xSi, UnitInterface<Q> displayUnit, R reference) Create an AbsVector1 without needing generics.Matrix1x1.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit) Create a new Matrix1x1 with a unit, based on a 2-dimensional grid with SI-values.Matrix1x1.ofSi(double[] dataSi, UnitInterface<Q> displayUnit) Create a Matrix1x1 without needing generics.Vector1.ofSi(double[] dataSi, UnitInterface<Q> displayUnit) Create a Vector1 without needing generics.Vector1.ofSi(double xSi, UnitInterface<Q> displayUnit) Create a Vector1 without needing generics.Constructors in org.djunits.vecmat.d1 with parameters of type UnitInterfaceModifierConstructorDescriptionprotectedMatrix1x1(double[] dataSi, UnitInterface<Q> displayUnit) Create a new Matrix1x1 with a display unit.Vector1(double xSi, UnitInterface<Q> displayUnit) Create a new Vector1 with a display unit. -
Uses of UnitInterface in org.djunits.vecmat.d2
Methods in org.djunits.vecmat.d2 with parameters of type UnitInterfaceModifier and TypeMethodDescriptionMatrix2x2.as(UnitInterface<TQ> targetUnit) Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ>>
Vector2.Col<TQ>Vector2.Col.as(UnitInterface<TQ> targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ>>
Vector2.Row<TQ>Vector2.Row.as(UnitInterface<TQ> targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.Matrix2x2.instantiateSi(double[] siNew, UnitInterface<Q> displayUnit) protected Vector2.Col<Q>Vector2.Col.instantiateSi(double xSi, double ySi, UnitInterface<Q> displayUnit) Vector2.instantiateSi(double[] siNew, UnitInterface<Q> displayUnit) protected abstract VVector2.instantiateSi(double xSiNew, double ySiNew, UnitInterface<Q> displayUnit) Return a column or row vector with x and y values in SI or BASE units.protected Vector2.Row<Q>Vector2.Row.instantiateSi(double xSi, double ySi, UnitInterface<Q> displayUnit) static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix2x2<A,Q> AbsMatrix2x2.of(double[][] gridInUnit, UnitInterface<Q> unit, R reference) Create an AbsMatrix2x2 with a unit, based on a 2-dimensional grid.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix2x2<A,Q> AbsMatrix2x2.of(double[] dataInUnit, UnitInterface<Q> unit, R reference) Create an AbsMatrix2x2 without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector2.Col<A,Q> AbsVector2.Col.of(double[] dataInUnit, UnitInterface<Q> unit, R reference) Create a AbsVector2.Col without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector2.Col<A,Q> AbsVector2.Col.of(double xInUnit, double yInUnit, UnitInterface<Q> unit, R reference) Create a AbsVector2.Col without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector2.Row<A,Q> AbsVector2.Row.of(double[] dataInUnit, UnitInterface<Q> unit, R reference) Create a AbsVector2.Row without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector2.Row<A,Q> AbsVector2.Row.of(double xInUnit, double yInUnit, UnitInterface<Q> unit, R reference) Create a AbsVector2.Row without needing generics.Matrix2x2.of(double[][] gridInUnit, UnitInterface<Q> unit) Create a new Matrix2x2 with a unit, based on a 2-dimensional grid with values in the given unit.Matrix2x2.of(double[] dataInUnit, UnitInterface<Q> unit) Create a new Matrix2x2 with a unit, based on a row-major array with values in the given unit.static <Q extends Quantity<Q>>
Vector2.Col<Q>Vector2.Col.of(double[] dataInUnit, UnitInterface<Q> unit) Create a Vector2.Col without needing generics.static <Q extends Quantity<Q>>
Vector2.Col<Q>Vector2.Col.of(double xInUnit, double yInUnit, UnitInterface<Q> unit) Create a Vector2.Col without needing generics.static <Q extends Quantity<Q>>
Vector2.Row<Q>Vector2.Row.of(double[] dataInUnit, UnitInterface<Q> unit) Create a Vector2.Row without needing generics.static <Q extends Quantity<Q>>
Vector2.Row<Q>Vector2.Row.of(double xInUnit, double yInUnit, UnitInterface<Q> unit) Create a Vector2.Row without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix2x2<A,Q> AbsMatrix2x2.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit, R reference) Create an AbsMatrix2x2 with a unit, based on a 2-dimensional grid with SI-values.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix2x2<A,Q> AbsMatrix2x2.ofSi(double[] dataSi, UnitInterface<Q> displayUnit, R reference) Create an AbsMatrix2x2 without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector2.Col<A,Q> AbsVector2.Col.ofSi(double[] dataSi, UnitInterface<Q> displayUnit, R reference) Create a AbsVector2.Col without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector2.Col<A,Q> AbsVector2.Col.ofSi(double xSi, double ySi, UnitInterface<Q> displayUnit, R reference) Create a AbsVector2.Col without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector2.Row<A,Q> AbsVector2.Row.ofSi(double[] dataSi, UnitInterface<Q> displayUnit, R reference) Create a AbsVector2.Row without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector2.Row<A,Q> AbsVector2.Row.ofSi(double xSi, double ySi, UnitInterface<Q> displayUnit, R reference) Create a AbsVector2.Row without needing generics.Matrix2x2.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit) Create a new Matrix2x2 with a unit, based on a 2-dimensional grid with SI-values.Matrix2x2.ofSi(double[] dataSi, UnitInterface<Q> displayUnit) Create a Matrix2x2 without needing generics, based on a row-major array with SI-values.static <Q extends Quantity<Q>>
Vector2.Col<Q>Vector2.Col.ofSi(double[] dataSi, UnitInterface<Q> displayUnit) Create a Vector2.Col without needing generics.static <Q extends Quantity<Q>>
Vector2.Col<Q>Vector2.Col.ofSi(double xSi, double ySi, UnitInterface<Q> displayUnit) Create a Vector2.Col without needing generics.static <Q extends Quantity<Q>>
Vector2.Row<Q>Vector2.Row.ofSi(double[] dataSi, UnitInterface<Q> displayUnit) Create a Vector2.Row without needing generics.static <Q extends Quantity<Q>>
Vector2.Row<Q>Vector2.Row.ofSi(double xSi, double ySi, UnitInterface<Q> displayUnit) Create a Vector2.Row without needing generics.Constructors in org.djunits.vecmat.d2 with parameters of type UnitInterfaceModifierConstructorDescriptionCol(double xSi, double ySi, UnitInterface<Q> displayUnit) Create a new 2 column vector with a display unit.protectedMatrix2x2(double[] dataSi, UnitInterface<Q> displayUnit) Create a new Matrix2x2 with a unit.Row(double xSi, double ySi, UnitInterface<Q> displayUnit) Create a new 2 row vector with a unit.protectedVector2(double xSi, double ySi, UnitInterface<Q> displayUnit) Create a new Vector2 with a display unit. -
Uses of UnitInterface in org.djunits.vecmat.d3
Methods in org.djunits.vecmat.d3 with parameters of type UnitInterfaceModifier and TypeMethodDescriptionMatrix3x3.as(UnitInterface<TQ> targetUnit) Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ>>
Vector3.Col<TQ>Vector3.Col.as(UnitInterface<TQ> targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ>>
Vector3.Row<TQ>Vector3.Row.as(UnitInterface<TQ> targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.Matrix3x3.instantiateSi(double[] siNew, UnitInterface<Q> displayUnit) protected Vector3.Col<Q>Vector3.Col.instantiateSi(double xSi, double ySi, double zSi, UnitInterface<Q> displayUnit) Vector3.instantiateSi(double[] siNew, UnitInterface<Q> displayUnit) protected abstract VVector3.instantiateSi(double xSiNew, double ySiNew, double zSiNew, UnitInterface<Q> displayUnit) Return a new column or row vector with adapted x, y and z values.protected Vector3.Row<Q>Vector3.Row.instantiateSi(double xSi, double ySi, double zSi, UnitInterface<Q> displayUnit) static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix3x3<A,Q> AbsMatrix3x3.of(double[][] gridInUnit, UnitInterface<Q> unit, R reference) Create an AbsMatrix3x3 with a unit, based on a 2-dimensional grid.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix3x3<A,Q> AbsMatrix3x3.of(double[] dataInUnit, UnitInterface<Q> unit, R reference) Create an AbsMatrix3x3 without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector3.Col<A,Q> AbsVector3.Col.of(double[] dataInUnit, UnitInterface<Q> unit, R reference) Create a AbsVector3.Col without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector3.Col<A,Q> AbsVector3.Col.of(double xInUnit, double yInUnit, double zInUnit, UnitInterface<Q> unit, R reference) Create a AbsVector3.Col without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector3.Row<A,Q> AbsVector3.Row.of(double[] dataInUnit, UnitInterface<Q> unit, R reference) Create a AbsVector3.Row without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector3.Row<A,Q> AbsVector3.Row.of(double xInUnit, double yInUnit, double zInUnit, UnitInterface<Q> unit, R reference) Create a AbsVector3.Row without needing generics.Matrix3x3.of(double[][] gridInUnit, UnitInterface<Q> unit) Create a new Matrix3x3 with a unit, based on a 2-dimensional grid with values in the given unit.Matrix3x3.of(double[] dataInUnit, UnitInterface<Q> unit) Create a new Matrix3x3 with a unit, based on a row-major array with values in the given unit.static <Q extends Quantity<Q>>
Vector3.Col<Q>Vector3.Col.of(double[] dataInUnit, UnitInterface<Q> unit) Create a Vector3.Col without needing generics.static <Q extends Quantity<Q>>
Vector3.Col<Q>Vector3.Col.of(double xInUnit, double yInUnit, double zInUnit, UnitInterface<Q> unit) Create a Vector3.Col without needing generics.static <Q extends Quantity<Q>>
Vector3.Row<Q>Vector3.Row.of(double[] dataInUnit, UnitInterface<Q> unit) Create a Vector3.Row without needing generics.static <Q extends Quantity<Q>>
Vector3.Row<Q>Vector3.Row.of(double xInUnit, double yInUnit, double zInUnit, UnitInterface<Q> unit) Create a Vector3.Row without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix3x3<A,Q> AbsMatrix3x3.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit, R reference) Create an AbsMatrix3x3 with a unit, based on a 2-dimensional grid with SI-values.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrix3x3<A,Q> AbsMatrix3x3.ofSi(double[] dataSi, UnitInterface<Q> displayUnit, R reference) Create an AbsMatrix3x3 without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector3.Col<A,Q> AbsVector3.Col.ofSi(double[] dataSi, UnitInterface<Q> displayUnit, R reference) Create a AbsVector3.Col without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector3.Col<A,Q> AbsVector3.Col.ofSi(double xSi, double ySi, double zSi, UnitInterface<Q> displayUnit, R reference) Create a AbsVector3.Col without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector3.Row<A,Q> AbsVector3.Row.ofSi(double[] dataSi, UnitInterface<Q> displayUnit, R reference) Create a AbsVector3.Row without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVector3.Row<A,Q> AbsVector3.Row.ofSi(double xSi, double ySi, double zSi, UnitInterface<Q> displayUnit, R reference) Create a AbsVector3.Row without needing generics.Matrix3x3.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit) Create a new Matrix3x3 with a unit, based on a 2-dimensional grid with SI-values.Matrix3x3.ofSi(double[] dataSi, UnitInterface<Q> displayUnit) Create a Matrix3x3 without needing generics, based on a row-major array with SI-values.static <Q extends Quantity<Q>>
Vector3.Col<Q>Vector3.Col.ofSi(double[] dataSi, UnitInterface<Q> displayUnit) Create a Vector3.Col without needing generics.static <Q extends Quantity<Q>>
Vector3.Col<Q>Vector3.Col.ofSi(double xSi, double ySi, double zSi, UnitInterface<Q> displayUnit) Create a Vector3.Col without needing generics.static <Q extends Quantity<Q>>
Vector3.Row<Q>Vector3.Row.ofSi(double[] dataSi, UnitInterface<Q> displayUnit) Create a Vector3.Row without needing generics.static <Q extends Quantity<Q>>
Vector3.Row<Q>Vector3.Row.ofSi(double xSi, double ySi, double zSi, UnitInterface<Q> displayUnit) Create a Vector3.Row without needing generics.Constructors in org.djunits.vecmat.d3 with parameters of type UnitInterfaceModifierConstructorDescriptionCol(double xSi, double ySi, double zSi, UnitInterface<Q> displayUnit) Create a new 3 column vector with a display unit.protectedMatrix3x3(double[] dataSi, UnitInterface<Q> displayUnit) Create a new Matrix3x3 with a unit.Row(double xSi, double ySi, double zSi, UnitInterface<Q> displayUnit) Create a new 3 row vector with a display unit.protectedVector3(double xSi, double ySi, double zSi, UnitInterface<Q> displayUnit) Create a new Vector3 with a display unit. -
Uses of UnitInterface in org.djunits.vecmat.def
Methods in org.djunits.vecmat.def that return UnitInterfaceMethods in org.djunits.vecmat.def with parameters of type UnitInterfaceModifier and TypeMethodDescriptionAbsMatrix.format(UnitInterface<Q> targetUnit) String representation of this matrix, expressed in the specified unit.default StringAbsVector.Col.format(UnitInterface<Q> targetUnit) String representation of this vector, expressed in the specified unit.default StringAbsVector.Row.format(UnitInterface<Q> targetUnit) String representation of this vector, expressed in the specified unit.Matrix.format(UnitInterface<Q> targetUnit) String representation of this matrix, expressed in the specified unit.default StringVector.Col.format(UnitInterface<Q> targetUnit) String representation of this vector, expressed in the specified unit.default StringVector.Row.format(UnitInterface<Q> targetUnit) String representation of this vector, expressed in the specified unit.AbsVectorMatrix.instantiateSi(double[] siNew, Reference<?, A, Q> newReference, UnitInterface<Q> displayUnit) Return a new vector or matrix with the given SI or BASE values for the relative vector or matrix.abstract VMVectorMatrix.instantiateSi(double[] siNew, UnitInterface<Q> displayUnit) Return a new vector or matrix with the given SI or BASE values.Constructors in org.djunits.vecmat.def with parameters of type UnitInterfaceModifierConstructorDescriptionMatrix(UnitInterface<Q> displayUnit) Create a new matrix with a unit.protectedSquareDenseMatrix(double[] dataSi, UnitInterface<Q> displayUnit, int order) Create a new SquareDenseMatrix with a unit.SquareMatrix(UnitInterface<Q> displayUnit) Create a new square matrix with a unit.Table(UnitInterface<Q> displayUnit) Create a new Table with a unit.Vector(UnitInterface<Q> displayUnit) Create a new Vector with a unit, as an extension of Matrix.VectorMatrix(UnitInterface<Q> displayUnit) Create a new vector or matrix with a unit. -
Uses of UnitInterface in org.djunits.vecmat.dn
Methods in org.djunits.vecmat.dn with parameters of type UnitInterfaceModifier and TypeMethodDescriptionMatrixNxN.as(UnitInterface<TQ> targetUnit) Return the matrix "as" a matrix with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ>>
VectorN.Col<TQ>VectorN.Col.as(UnitInterface<TQ> targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ>>
VectorN.Row<TQ>VectorN.Row.as(UnitInterface<TQ> targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.MatrixNxN.instantiateSi(double[] siNew, UnitInterface<Q> displayUnit) VectorN.Col.instantiateSi(double[] data, UnitInterface<Q> displayUnit) VectorN.Row.instantiateSi(double[] data, UnitInterface<Q> displayUnit) static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrixNxN<A,Q> AbsMatrixNxN.of(double[][] gridInUnit, UnitInterface<Q> unit, R reference) Create an AbsMatrixNxN with a unit, based on a 2-dimensional grid.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrixNxN<A,Q> AbsMatrixNxN.of(double[] dataInUnit, UnitInterface<Q> unit, R reference) Create an AbsMatrixNxN without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVectorN.Col<A,Q> AbsVectorN.Col.of(double[] dataInUnit, UnitInterface<Q> unit, R reference) Create a AbsVectorN.Col without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVectorN.Row<A,Q> AbsVectorN.Row.of(double[] dataInUnit, UnitInterface<Q> unit, R reference) Create a AbsVectorN.Row without needing generics.MatrixNxN.of(double[][] gridInUnit, UnitInterface<Q> unit) Create a new MatrixNxN with a unit, based on a 2-dimensional grid with values in the given unit.MatrixNxN.of(double[] dataInUnit, UnitInterface<Q> unit) Create a new MatrixNxN with a unit, based on a row-major array with values in the given unit.static <Q extends Quantity<Q>>
VectorN.Col<Q>VectorN.Col.of(double[] dataInUnit, UnitInterface<Q> unit) Create a new column VectorN with a unit, based on a double[] array that contains data in the given unit.static <Q extends Quantity<Q>>
VectorN.Row<Q>VectorN.Row.of(double[] dataInUnit, UnitInterface<Q> unit) Create a new row VectorN with a unit, based on a double[] array that contains data in the given unit.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrixNxN<A,Q> AbsMatrixNxN.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit, R reference) Create an AbsMatrixNxN with a unit, based on a 2-dimensional grid with SI-values.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrixNxN<A,Q> AbsMatrixNxN.ofSi(double[] dataSi, UnitInterface<Q> displayUnit, R reference) Create an AbsMatrixNxN without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVectorN.Col<A,Q> AbsVectorN.Col.ofSi(double[] dataSi, UnitInterface<Q> displayUnit, R reference) Create a AbsVectorN.Col without needing generics.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsVectorN.Row<A,Q> AbsVectorN.Row.ofSi(double[] dataSi, UnitInterface<Q> displayUnit, R reference) Create a AbsVectorN.Row without needing generics.MatrixNxN.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit) Create a new MatrixNxN with a unit, based on a 2-dimensional grid with SI-values.MatrixNxN.ofSi(double[] dataSi, UnitInterface<Q> displayUnit) Create a MatrixNxN without needing generics, based on a row-major array with SI-values.static <Q extends Quantity<Q>>
VectorN.Col<Q>VectorN.Col.ofSi(double[] dataSi, UnitInterface<Q> displayUnit) Create a new column VectorN with a unit, based on a double[] array that contains SI data.static <Q extends Quantity<Q>>
VectorN.Col<Q>VectorN.Col.ofSi(DataGridSi<?> dataSi, UnitInterface<Q> displayUnit) Create a new column VectorN with a unit, based on a DataGridSi storage object that contains SI data.static <Q extends Quantity<Q>>
VectorN.Row<Q>VectorN.Row.ofSi(double[] dataSi, UnitInterface<Q> displayUnit) Create a new row VectorN with a unit, based on a double[] array that contains SI data.static <Q extends Quantity<Q>>
VectorN.Row<Q>VectorN.Row.ofSi(DataGridSi<?> dataSi, UnitInterface<Q> displayUnit) Create a new row VectorN with a unit, based on a DataGridSi storage object that contains SI data.Constructors in org.djunits.vecmat.dn with parameters of type UnitInterfaceModifierConstructorDescriptionCol(DataGridSi<?> dataSi, UnitInterface<Q> displayUnit) Create a new column VectorN with a unit, based on a DataGridSi storage object that contains SI data.MatrixNxN(DataGridSi<?> dataGridSi, UnitInterface<Q> displayUnit) Create a new NxN Matrix with a unit, based on a DataGrid storage object that contains SI data.Row(DataGridSi<?> dataSi, UnitInterface<Q> displayUnit) Create a new row VectorN with a unit, based on a DataGridSi storage object that contains SI data.protectedVectorN(DataGridSi<?> dataSi, UnitInterface<Q> displayUnit) Create a new VectorN with a unit, based on a DataGridSi storage object that contains SI data. -
Uses of UnitInterface in org.djunits.vecmat.dnxm
Methods in org.djunits.vecmat.dnxm with parameters of type UnitInterfaceModifier and TypeMethodDescriptionMatrixNxM.as(UnitInterface<TQ> targetUnit) Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.MatrixNxM.instantiateSi(double[] siNew, UnitInterface<Q> displayUnit) static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrixNxM<A,Q> AbsMatrixNxM.of(double[][] gridInUnit, UnitInterface<Q> unit, R reference) Create a new AbsMatrixNxM with a unit, based on a 2-dimensional grid with values in the given unit.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrixNxM<A,Q> AbsMatrixNxM.of(double[] dataInUnit, int rows, int cols, UnitInterface<Q> unit, R reference) Create a new AbsMatrixNxM with a unit, based on a row-major array with values in the given unit.MatrixNxM.of(double[][] gridInUnit, UnitInterface<Q> unit) Create a new MatrixNxM with a unit, based on a 2-dimensional grid with values in the given unit.MatrixNxM.of(double[] dataInUnit, int rows, int cols, UnitInterface<Q> unit) Create a new MatrixNxM with a unit, based on a row-major array with values in the given unit.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrixNxM<A,Q> AbsMatrixNxM.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit, R reference) Create a new AbsMatrixNxM with a unit, based on a 2-dimensional grid with SI-values.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsMatrixNxM<A,Q> AbsMatrixNxM.ofSi(double[] dataSi, int rows, int cols, UnitInterface<Q> displayUnit, R reference) Create a AbsMatrixNxM without needing generics, based on a row-major array with SI-values.MatrixNxM.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit) Create a new MatrixNxM with a unit, based on a 2-dimensional grid with SI-values.MatrixNxM.ofSi(double[] dataSi, int rows, int cols, UnitInterface<Q> displayUnit) Create a MatrixNxM without needing generics, based on a row-major array with SI-values.Constructors in org.djunits.vecmat.dnxm with parameters of type UnitInterfaceModifierConstructorDescriptionMatrixNxM(DataGridSi<?> dataGridSi, UnitInterface<Q> displayUnit) Create a new NxM Matrix with a unit, based on a DataGrid storage object that contains SI data. -
Uses of UnitInterface in org.djunits.vecmat.storage
Methods in org.djunits.vecmat.storage with parameters of type UnitInterfaceModifier and TypeMethodDescriptionstatic <Q extends Quantity<Q>>
DenseDoubleDataSiDenseDoubleDataSi.of(double[][] gridInUnit, UnitInterface<Q> unit) Instantiate a data object based on a row x column double[][] array in a given unit.static <Q extends Quantity<Q>>
DenseDoubleDataSiDenseDoubleDataSi.of(double[] dataInUnit, int rows, int cols, UnitInterface<Q> unit) Instantiate a data object based on a row-major double[] array in a given unit.static <Q extends Quantity<Q>>
DenseFloatDataSiDenseFloatDataSi.of(double[][] gridInUnit, UnitInterface<Q> unit) Instantiate a data object with a double[rows][cols].static <Q extends Quantity<Q>>
DenseFloatDataSiDenseFloatDataSi.of(double[] dataInUnit, int rows, int cols, UnitInterface<Q> unit) Instantiate a data object with one array in row-major format.static <Q extends Quantity<Q>>
DenseFloatDataSiDenseFloatDataSi.of(float[][] gridInUnit, UnitInterface<Q> unit) Instantiate a data object with a float[rows][cols].static <Q extends Quantity<Q>>
DenseFloatDataSiDenseFloatDataSi.of(float[] dataInUnit, int rows, int cols, UnitInterface<Q> unit) Instantiate a data object with one array in row-major format.Constructors in org.djunits.vecmat.storage with parameters of type UnitInterfaceModifierConstructorDescriptionDoubleSparseValue(int row, int column, double valueInUnit, UnitInterface<Q> unit) Create a data point for a sparse matrix.FloatSparseValue(int row, int column, float valueInUnit, UnitInterface<Q> unit) Create a data point for a sparse matrix. -
Uses of UnitInterface in org.djunits.vecmat.table
Methods in org.djunits.vecmat.table with parameters of type UnitInterfaceModifier and TypeMethodDescription<TQ extends Quantity<TQ>>
QuantityTable<TQ>QuantityTable.as(UnitInterface<TQ> targetUnit) Return the QuantityTable 'as' a QuantityTable with a known quantity, using a unit to express the result in.AbsQuantityTable.format(UnitInterface<Q> targetUnit) String representation of this quantity table, expressed in the specified unit.QuantityTable.format(UnitInterface<Q> targetUnit) String representation of this quantity table, expressed in the specified unit.QuantityTable.instantiateSi(double[] siNew, UnitInterface<Q> displayUnit) static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsQuantityTable<A,Q> AbsQuantityTable.of(double[][] gridInUnit, UnitInterface<Q> unit, R reference) Create a new AbsQuantityTable with a unit, based on a 2-dimensional grid with values in the given unit.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsQuantityTable<A,Q> AbsQuantityTable.of(double[] dataInUnit, int rows, int cols, UnitInterface<Q> unit, R reference) Create a new AbsQuantityTable with a unit, based on a row-major array with values in the given unit.static <Q extends Quantity<Q>>
QuantityTable<Q>QuantityTable.of(double[][] gridInUnit, UnitInterface<Q> unit) Create a new QuantityTable with a unit, based on a 2-dimensional grid with values in the given unit.static <Q extends Quantity<Q>>
QuantityTable<Q>QuantityTable.of(double[] dataInUnit, int rows, int cols, UnitInterface<Q> unit) Create a new QuantityTable with a unit, based on a row-major array with values in the given unit.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsQuantityTable<A,Q> AbsQuantityTable.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit, R reference) Create a new AbsQuantityTable with a unit, based on a 2-dimensional grid with SI-values.static <A extends AbsQuantity<A,Q, R>, Q extends Quantity<Q>, R extends Reference<R, A, Q>>
AbsQuantityTable<A,Q> AbsQuantityTable.ofSi(double[] dataSi, int rows, int cols, UnitInterface<Q> displayUnit, R reference) Create a AbsQuantityTable without needing generics, based on a row-major array with SI-values.static <Q extends Quantity<Q>>
QuantityTable<Q>QuantityTable.ofSi(double[][] gridSi, UnitInterface<Q> displayUnit) Create a new QuantityTable with a unit, based on a 2-dimensional grid with SI-values.static <Q extends Quantity<Q>>
QuantityTable<Q>QuantityTable.ofSi(double[] dataSi, int rows, int cols, UnitInterface<Q> displayUnit) Create a QuantityTable without needing generics, based on a row-major array with SI-values.Constructors in org.djunits.vecmat.table with parameters of type UnitInterfaceModifierConstructorDescriptionQuantityTable(DataGridSi<?> dataGridSi, UnitInterface<Q> displayUnit) Create a new NxM QuantityTable with a unit, based on a DataGrid storage object.