1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.29
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.quantlib;
public class Statistics {
private long swigCPtr;
protected boolean swigCMemOwn;
protected Statistics(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Statistics obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
QuantLibJNI.delete_Statistics(swigCPtr);
}
swigCPtr = 0;
}
public long samples() {
return QuantLibJNI.Statistics_samples(swigCPtr);
}
public double weightSum() {
return QuantLibJNI.Statistics_weightSum(swigCPtr);
}
public double mean() {
return QuantLibJNI.Statistics_mean(swigCPtr);
}
public double variance() {
return QuantLibJNI.Statistics_variance(swigCPtr);
}
public double standardDeviation() {
return QuantLibJNI.Statistics_standardDeviation(swigCPtr);
}
public double errorEstimate() {
return QuantLibJNI.Statistics_errorEstimate(swigCPtr);
}
public double skewness() {
return QuantLibJNI.Statistics_skewness(swigCPtr);
}
public double kurtosis() {
return QuantLibJNI.Statistics_kurtosis(swigCPtr);
}
public double min() {
return QuantLibJNI.Statistics_min(swigCPtr);
}
public double max() {
return QuantLibJNI.Statistics_max(swigCPtr);
}
public void reset() {
QuantLibJNI.Statistics_reset(swigCPtr);
}
public void add(double value, double weight) {
QuantLibJNI.Statistics_add__SWIG_0(swigCPtr, value, weight);
}
public void add(double value) {
QuantLibJNI.Statistics_add__SWIG_1(swigCPtr, value);
}
public void add(DoubleVector values) {
QuantLibJNI.Statistics_add__SWIG_2(swigCPtr, DoubleVector.getCPtr(values));
}
public void add(DoubleVector values, DoubleVector weights) {
QuantLibJNI.Statistics_add__SWIG_3(swigCPtr, DoubleVector.getCPtr(values), DoubleVector.getCPtr(weights));
}
public Statistics() {
this(QuantLibJNI.new_Statistics(), true);
}
}
|