コード例 #1
0
        private static ArtaProcessNormal CreateArtaProcessN(NormalDistribution normal, double[] artaCorrelationCoefficients, RandomGenerator random)// throws NotStationaryException
        {
            ArtaProcessNormal arta = null;
            // By definition: arCorrelationCoefficients == artaCorrelationCoefficients
            ArProcess ar = ArProcessFactory.CreateArProcess(artaCorrelationCoefficients, random);

            arta = new ArtaProcessNormal(ar, normal.getNumericalMean(), normal.getNumericalVariance());
            return(arta);
        }
コード例 #2
0
        private static ArtaProcessGeneral CreateArtaProcessG(RealDistribution distribution, double[] artaCorrelationCoefficients, RandomGenerator random) //throws NotStationaryException
        {
            ArtaProcessGeneral    arta   = null;
            AutocorrelationFitter fitter = new AutocorrelationFitter(distribution);

            double[]  arCorrelationCoefficients = fitter.FitArAutocorrelations(artaCorrelationCoefficients, DEFAULT_ERROR);
            ArProcess ar = ArProcessFactory.CreateArProcess(arCorrelationCoefficients, random);

            arta = new ArtaProcessGeneral(ar, distribution);
            return(arta);
        }
コード例 #3
0
        private static ArtaProcessUniform createArtaProcessU(UniformRealDistribution uniform, double[] artaCorrelationCoefficients, RandomGenerator random) //throws NotStationaryException
        {
            ArtaProcessUniform arta = null;
            int dim = artaCorrelationCoefficients.Length;

            double[] arCorrelationCoefficients = new double[dim];
            for (int i = 0; i < dim; i++)
            {
                arCorrelationCoefficients[i] = 2 * Math.Sin(Math.PI * artaCorrelationCoefficients[i] / 6);
            }
            ArProcess ar = ArProcessFactory.CreateArProcess(arCorrelationCoefficients, random);

            arta = new ArtaProcessUniform(ar, uniform.getSupportLowerBound(), uniform.getSupportUpperBound());
            return(arta);
        }
コード例 #4
0
 public ArtaProcessUniform(ArProcess ar, double lower, double difference) : base(ar)
 {
     this.lower      = lower;
     this.difference = difference;
 }
コード例 #5
0
 public AbstractArtaProcess(ArProcess ar)
 {
     this.ar = ar;
 }
コード例 #6
0
 public ArtaProcessNormal(ArProcess ar, double mean, double variance) : base(ar)
 {
     this.mean  = mean;
     this.stdev = Math.Sqrt(variance);
 }
コード例 #7
0
 public ArtaProcessGeneral(ArProcess ar, RealDistribution distribution) : base(ar)
 {
     this.distribution = distribution;
     // TODO Auto-generated constructor stub
 }