Esempio n. 1
0
 private void UpdateUi()
 {
     GridValsVm.UpdateData(Star2Grid.CurValuesAsP2Vs());
     GridDeltasVm.UpdateData(Star2Grid.CurDeltasAsP2Vs());
     AbsDelta   = A2dUt.flattenRowMajor(Star2Grid.Stars).Sum(st => st.AbsDelta);
     NoiseField = A2dUt.flattenRowMajor(Star2Grid.Stars).Sum(st => st.NoiseField);
     OnPropertyChanged("Generation");
     OnPropertyChanged("ElapsedTime");
 }
Esempio n. 2
0
 private void UpdateUi()
 {
     GridValsVm.UpdateData(Star5Grid.CurValuesAsP2Vs());
     GridDeltasVm.UpdateData(Star5Grid.CurDeltasAsP2Vs());
     AbsDelta           = A2dUt.flattenRowMajor(Star5Grid.Stars).Average(st => st.AbsDelta);
     NoiseField         = A2dUt.flattenRowMajor(Star5Grid.Stars).Average(st => st.NoiseField);
     NoiseLevelVm.Value = (NoiseField > AbsDeltaTargetVm.Value) ? NoiseLevelVm.Value - 0.0025f : NoiseLevelVm.Value + 0.0025f;
     OnPropertyChanged("Generation");
     OnPropertyChanged("ElapsedTime");
 }