Пример #1
0
		public static AnalysisState Remove(
			this AnalysisState self , int idx )
		{
			self.State.Remove( idx );
			return self;
		}
Пример #2
0
		public static AnalysisState ChangeWaveLen( AnalysisState state , double [ ] minmax )
			=> CreateState( state.State , minmax );
Пример #3
0
		public static AnalysisState Insert(
			this AnalysisState self , IPSResultData data , int idx )
		{
			self.State [ idx ] = data;
			return self;
		}
Пример #4
0
		public static AnalysisState Add( AnalysisState state , IPSResultData data , int idx )
			=> state.Map( SetAction( true ) )
					.Map( SetTarget( idx ) );
Пример #5
0
		public static AnalysisState Pop( AnalysisState state , int idx )
			=> state.Map( SetAction( false ) )
					.Map( SetTarget( idx ) );
Пример #6
0
		public static IEnumerable<double [ ]> ExtractRflct( AnalysisState state )
			=> state.State.Select( x => x.Value.DReflectivity.ToArray() );
Пример #7
0
		public static IEnumerable<double> ExtractLabel( AnalysisState state )
			=> state.State.First().Value.DWaveLength;
Пример #8
0
		public static IEnumerable<double [ ]> ExtractInten( AnalysisState state )
			=> state.State.Select( x => x.Value.DIntenList.ToArray() );
Пример #9
0
		public static mCrtCrd OfPosition
		( this AnalysisState self , int idx )
			=> self.State.ContainsKey( idx )
				? self.State [ idx ].Position
				: null;
Пример #10
0
		public static Thickness OfThickness
		( this AnalysisState self , int idx )
			=> self.State.ContainsKey( idx )
				? self.State [ idx ].Thickness
				: null;
Пример #11
0
		public static Reflectivity [ ] OfRefelctivity
			( this AnalysisState self , int idx )
			=> self.State.ContainsKey( idx )
				? self.State [ idx ].Reflectivity
				: null;
Пример #12
0
		public static Intensity [ ] OfIntensity
			( this AnalysisState self , int idx )
			=> self.State.ContainsKey( idx )
				? self.State [ idx ].IntenList
				: null;