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