public class InversionResult
extends java.lang.Object
LetMeInvert
.コンストラクタと説明 |
---|
InversionResult(java.nio.file.Path rootPath) |
修飾子とタイプ | メソッドと説明 |
---|---|
double |
aicOf(double a,
InverseMethodEnum inverse,
int n) |
java.util.Map<UnknownParameter,java.lang.Double> |
answerMapOf(InverseMethodEnum inverse,
int n)
Example, if you want to get an answer of CG1.
|
Trace |
bornOf(BasicID id,
InverseMethodEnum method,
int n)
If the born waveform already is computed and in a file then, read and
return it.
|
static double |
complement(java.util.Map<UnknownParameter,java.lang.Double> answer,
int nPoints,
int nPower,
Location location,
PartialType type) |
void |
createBorn(InverseMethodEnum method,
int n)
Computes born waveforms of the answer by using n basis vector in the
method for all time windows.
|
java.util.List<BasicID> |
getBasicIDList() |
org.apache.commons.math3.linear.RealVector |
getDVector() |
java.util.Map<GlobalCMTID,java.lang.Double> |
getEventVariance() |
double |
getInitialAIC(double a) |
double |
getInitialVariance() |
int |
getNumberOfDatapoints() |
int |
getNumberOfUnknowns() |
int |
getNumberOfWindows() |
org.apache.commons.math3.linear.RealVector |
getObservedVector() |
double |
getStartTimeDifference(int i) |
java.util.Map<Station,java.lang.Double> |
getStationVariance() |
org.apache.commons.math3.linear.RealVector |
getSyntheticVector() |
java.util.List<UnknownParameter> |
getUnknownParameterList() |
java.util.Set<GlobalCMTID> |
idSet() |
Trace |
observedOf(BasicID id) |
Trace |
partialOf(BasicID id,
UnknownParameter parameter) |
java.util.Set<Station> |
stationSet() |
Trace |
syntheticOf(BasicID id) |
double |
varianceOf(InverseMethodEnum inverse,
int n) |
public InversionResult(java.nio.file.Path rootPath) throws java.io.IOException
rootPath
- of an inversionjava.io.IOException
- if an I/O error occurspublic static double complement(java.util.Map<UnknownParameter,java.lang.Double> answer, int nPoints, int nPower, Location location, PartialType type)
answer
- map of the answernPoints
- number of pointsnPower
- 距離の何乗で補間するかlocation
- location for complementtype
- PartialType
public java.util.List<UnknownParameter> getUnknownParameterList()
public java.util.List<BasicID> getBasicIDList()
BasicID
in order. Observed IDs.public int getNumberOfWindows()
public int getNumberOfUnknowns()
public double getStartTimeDifference(int i)
i
- index of the order in vectorspublic org.apache.commons.math3.linear.RealVector getDVector() throws org.apache.commons.math3.exception.DimensionMismatchException, java.io.IOException
java.io.IOException
- if anyorg.apache.commons.math3.exception.DimensionMismatchException
public org.apache.commons.math3.linear.RealVector getObservedVector() throws java.io.IOException
java.io.IOException
- if anypublic org.apache.commons.math3.linear.RealVector getSyntheticVector() throws java.io.IOException
java.io.IOException
- if anypublic double varianceOf(InverseMethodEnum inverse, int n)
inverse
- the method for the inverse problemn
- the index for the answer 1 ≤ npublic double aicOf(double a, InverseMethodEnum inverse, int n)
a
- assumed redundancy in data points. It is used as n/a, where n
is the number of data points, note that n/a will be
(int)(n/a).inverse
- the method for the inverse problemn
- the index for the answer 1 ≤ npublic int getNumberOfDatapoints()
public Trace partialOf(BasicID id, UnknownParameter parameter) throws java.io.IOException
id
- ID of the partialparameter
- index of a partial in unknown parametersTrace
of parN in nth time window. time axis is Synthetic
onejava.io.IOException
- if an I/O error occurspublic java.util.Map<UnknownParameter,java.lang.Double> answerMapOf(InverseMethodEnum inverse, int n) throws java.io.IOException
Keys of the returning map are unknown parameters.
inverse
- used solvern
- the number of used eigen vectors for the answerjava.io.IOException
- if an I/O error occurspublic Trace observedOf(BasicID id) throws java.io.IOException
id
- id of an observed waveform (This ID must be in the list by
getBasicIDList()
)Trace
of n th observed waveforms. Time axis is observed
one.java.io.IOException
- if an I/O error occurspublic Trace syntheticOf(BasicID id) throws java.io.IOException
id
- ID of the order in vector (This ID must be in the list by
getBasicIDList()
)Trace
of n th synthetic waveforms. Time axis is synjava.io.IOException
- if an I/O error occurspublic java.util.Set<Station> stationSet()
public java.util.Set<GlobalCMTID> idSet()
public Trace bornOf(BasicID id, InverseMethodEnum method, int n) throws java.io.IOException
id
- of the target raypathmethod
- of inversionn
- number of eigen vectors(SVD) or CG vectors (CG) or...java.io.IOException
- if anypublic void createBorn(InverseMethodEnum method, int n) throws java.io.IOException
method
- to solve an equationn
- the number of used basis vectorjava.io.IOException
- if an I/O error occurspublic java.util.Map<Station,java.lang.Double> getStationVariance()
public java.util.Map<GlobalCMTID,java.lang.Double> getEventVariance()
public double getInitialVariance()
public double getInitialAIC(double a)
a
- assumed redundancy in data points. It is used as n/a, where n
is the number of data points, note that n/a will be
(int)(n/a).