Ejemplo n.º 1
0
        static void WaveletCreateFromFunction()
        {
            Func <double, double> func = t => Math.Sin(6 * t) / (1 + t * t);

            //Func<double, double> func = t => (t >= 0.45 && t <= 0.55) ? Math.Sin(20 * Math.PI*(t - 0.45)) : 0;

            Wavelet.Wavelets wavelets = Wavelet.Wavelets.LP;
            double           omega    = 2;

            FuncMethods.DefInteg.GaussKronrod.NodesCount nodesCount = GaussKronrod.NodesCount.GK61;

            double xmin       = -3;
            double xmax       = 8;
            double ymin       = -4;
            double ymax       = 4;
            int    spaceCount = 40;

            double tmin   = -7;
            double tmax   = 7;
            int    tcount = 260;

            WaveletTest.Start(func, wavelets, omega, nodesCount,
                              new NetOnDouble(xmin, xmax, spaceCount),
                              new NetOnDouble(ymin, ymax, spaceCount),
                              new NetOnDouble(tmin, tmax, tcount));
        }
Ejemplo n.º 2
0
        static void WaveletCreateFromArray()
        {
            double begin = -0.0004;
            double step  = 16E-9;
            int    count = 150000;

            string filename = "ArrayB.txt";
            string path     = @"C:\Users\user1\Desktop\zameri\n28_uzkopolos\Замер G\Разница";


            Wavelet.Wavelets wavelets = Wavelet.Wavelets.LP;
            double           omega    = 2;

            FuncMethods.DefInteg.GaussKronrod.NodesCount nodesCount = GaussKronrod.NodesCount.GK61;

            double xmin       = 1.0 / 80000;
            double xmax       = 1.0 / 20000;
            double ymin       = -0.0004;
            double ymax       = 0.002079984;
            int    spaceCount = 200;

            WaveletTest.Start(begin, step, count, filename, path, wavelets, omega, nodesCount, new NetOnDouble(xmin, xmax, spaceCount), new NetOnDouble(ymin, ymax, spaceCount));
        }