示例#1
0
文件: frmMain.cs 项目: SichMichail/me
        private void tabFormControl1_SelectedPageChanged(object sender, TabFormSelectedPageChangedEventArgs e)
        {
            if (e.Page == tabpPart2)
            {
                funcud = new FunctionUd();
                funcud.Build();
                funcvd = new FunctionVd();
                funcvd.Build();
                funczd = new FunctionZd(funcud, funcvd);
                funczd.Build();
                funczd1 = new FunctionZd1(funcud, funcvd);
                funczd1.Build();

                funcudiscr = new FunctionUd();
                funcudiscr.Build();
                funcudiscr.MadeDiscret();

                funcvdiscr = new FunctionVd();
                funcvdiscr.Build();
                funcvdiscr.MadeDiscret();

                funczdiscr = new FunctionZd(funcudiscr, funcvdiscr);
                funczdiscr.Build();
                funczdiscr.MadeDiscret();

                spectreU = funcud.FurieTransform().GetAFR;
                spectreV = funcvd.FurieTransform().GetAFR;
                spectreZ = funczd.FurieTransform().GetAFR;

                energyspectreZ = funczd.EnergySpectre().GetAFR;
                energyspectreV = funcvd.EnergySpectre().GetAFR;
                energyspectreU = funcud.EnergySpectre().GetAFR;

                acfu = funcud.AutoCorrelationFunctionDiscret(500);
                acfv = funcvd.AutoCorrelationFunctionDiscret(500);
                acfz = funczd.AutoCorrelationFunctionDiscret(500);

                acfuv = funcud.CorrelationFunctionDiscret(funcvd, 500);
                acfuz = funcud.CorrelationFunctionDiscret(funczd, 500);
                acfvz = funcvd.CorrelationFunctionDiscret(funczd, 500);

                enuvrel = funcud.RelativeEnergySpectre(funcvd).GetAFR;
                enuzrel = funcud.RelativeEnergySpectre(funczd).GetAFR;
                envzrel = funcvd.RelativeEnergySpectre(funczd).GetAFR;


                enuz1rel = funcud.RelativeEnergySpectre(funczd1).GetAFR;
                envz1rel = funcvd.RelativeEnergySpectre(funczd1).GetAFR;

                relcorz1vd = funczd1.CorrelationFunctionDiscret(funcvd, 500);
                relcorz1ud = funczd1.CorrelationFunctionDiscret(funcud, 500);

                //var energyvz = acfvz.FurieTransform().GetAFR;

                //chartForPart2.AddFunc(spectreU);
                //chartForPart2.AddFunc(spectreV);
                //chartForPart2.AddFunc(spectreZ);
                //chartForPart2.AddFunc(energyspectreU);
                //chartForPart2.AddFunc(energyspectreV);
                //chartForPart2.AddFunc(energyspectreZ);
                //chartForPart2.AddFunc(funcud.AutoCorrelationContinous(1));
                //chartForPart2.AddFunc(funcvd.AutoCorrelationContinous(1));
                //chartForPart2.AddFunc(funczd.AutoCorrelationContinous(1));
                //chartForPart2.AddFunc(funcud.AutoCovariationDiscret(500));
                //chartForPart2.AddFunc(funcvd.AutoCovariationDiscret(500));
                //chartForPart2.AddFunc(acfu);
                //chartForPart2.AddFunc(acfv);
                //chartForPart2.AddFunc(acfz);
                //chartForPart2.AddFunc(acfuv);
                //chartForPart2.AddFunc(acfvz);
                //chartForPart2.AddFunc(acfuz);

                //chartForPart2.AddFunc(enuvrel);
                //chartForPart2.AddFunc(envzrel);
                //chartForPart2.AddFunc(enuzrel);

                //chartForPart2.AddFunc(acfuv.FurieTransform().GetAFR);
                //chartForPart2.AddFunc(energyvz);
                //chartForPart2.AddFunc(acfuz.FurieTransform().GetAFR);



                //chartForPart2.AddFunc(funczd.AutoCovariationDiscret(500));
                //chartForPart2.AddFunc(funczd);
                //chartForPart2.AddFunc(funczd1);
                //chartForPart2.AddFunc(funcud);

                //chartForPart2.AddFunc(funcvd);
                //chartForPart2.AddFunc(energyspectreV.FurieTransformInversion());
                //chartForPart2.AddFunc(energyspectreU.FurieTransformInversion());
                //chartForPart2.AddFunc(energyspectreZ.FurieTransformInversion());
                //chartForPart2.AddFunc(enuvrel.FurieTransformInversion());
                //chartForPart2.AddFunc(enuzrel.FurieTransformInversion());
                //chartForPart2.AddFunc(envzrel.FurieTransformInversion());
                memoPart2.Text += "Скалярное произведение ud и vd =" + funcud.ScalarProduct(funcvd) + Environment.NewLine;
                memoPart2.Text += "Скалярное произведение ud и zd =" + funcud.ScalarProduct(funczd) + Environment.NewLine;
                memoPart2.Text += "Скалярное произведение vd и zd =" + funcvd.ScalarProduct(funczd) + Environment.NewLine;
                //memoResults.Text += "косинус угла между v и u =" + funcu.Norma() / funcV.Norma() + Environment.NewLine;

                //ResultOutPut(memoPart2, funcud);
                //ResultOutPut(memoPart2, funcvd);
                //ResultOutPut(memoPart2, funczd);
                //memoPart2.Text += "энерг из вкф вз" + energyvz.FullEnergy() + Environment.NewLine;
                //memoPart2.Text += "энерг чистая вз" + envzrel.FullEnergy() + Environment.NewLine;
                //chartForPart2.DrawFunc();
            }
        }
示例#2
0
 public FunctionZd1(FunctionUd funcU, FunctionVd funcV) : base(funcU, funcV)
 {
     Series.Name = "zd1";
 }
示例#3
0
 public FunctionZd(FunctionUd funcU, FunctionVd funcV) : base()
 {
     Series.Name = "zd";
     _funcU      = funcU;
     _funcV      = funcV;
 }