예제 #1
0
        public ScalarField2D(Func <double, double, double> d_fxy, LinearSpace d_x, LinearSpace d_y)
        {
            fxy   = d_fxy;
            x     = d_x;
            y     = d_y;
            field = new double[x.N, y.N];

            this.Fill();
        }
예제 #2
0
        public ComplexLinearSpace(int dimMag, int dimPhase, bool degNOTRAD = true)
        {
            this.Mag = new Microwave.LinearSpace(0, 1.0, dimMag);

            if (degNOTRAD)
            {
                this.Phase = new Microwave.LinearSpace(0, 360.0, dimPhase);
            }
            else
            {
                this.Phase = new Microwave.LinearSpace(0, 2 * Math.PI, dimPhase);
            }
        }
예제 #3
0
 public XY(double[] d_x, double[] d_y)
 {
     this.x = new Microwave.LinearSpace(d_x[0], d_x[d_x.Length - 1] + (d_x[1] - d_x[0]), d_x.Length);
     this.y = d_y;
     this.N = d_y.Length;
 }
예제 #4
0
 public XY(LinearSpace d_x)
 {
     this.x = d_x;
     this.y = new double[d_x.N];
     this.N = d_x.N;
 }
예제 #5
0
 public XY(LinearSpace d_x, double[] d_y)
 {
     this.x = d_x;
     this.y = d_y;
     this.N = d_x.N;
 }
예제 #6
0
 public ComplexLinearSpace(LinearSpace d_Mag, LinearSpace d_Phase)
 {
     this.Mag   = d_Mag;
     this.Phase = d_Phase;
 }
예제 #7
0
 public ComplexLinearSpace()
 {
     this.Mag   = new Microwave.LinearSpace(0, 1.0, (int)100);
     this.Phase = new Microwave.LinearSpace(0, 360.0, (int)100);
 }