1
- using System . Collections . Generic ;
1
+ using System ;
2
+ using System . Collections . Generic ;
2
3
3
- namespace TopDownProteomics . MassSpectrometry
4
+ namespace TopDownProteomics . MassSpectrometry ;
5
+
6
+ /// <summary>
7
+ /// Neutral distribution of isotopes in a mass spectrometer.
8
+ /// </summary>
9
+ public interface IIsotopicDistribution
4
10
{
5
11
/// <summary>
6
- /// Neutral distribution of isotopes in a mass spectrometer.
12
+ /// Gets the length.
13
+ /// </summary>
14
+ int Length { get ; }
15
+
16
+ /// <summary>
17
+ /// Gets the masses.
7
18
/// </summary>
8
- public interface IIsotopicDistribution
9
- {
10
- /// <summary>
11
- /// Gets the length.
12
- /// </summary>
13
- int Length { get ; }
19
+ IList < double > Masses { get ; }
14
20
15
- /// <summary>
16
- /// Gets the masses .
17
- /// </summary>
18
- IList < double > Masses { get ; }
21
+ /// <summary>
22
+ /// Gets the intensities .
23
+ /// </summary>
24
+ IList < double > Intensities { get ; }
19
25
20
- /// <summary>
21
- /// Gets the intensities.
22
- /// </summary>
23
- IList < double > Intensities { get ; }
26
+ /// <summary>
27
+ /// Creates a charged isotopic distribution.
28
+ /// </summary>
29
+ /// <param name="charge">The charge.</param>
30
+ /// <param name="positiveCharge">if set to <c>true</c> [positive charge].</param>
31
+ /// <returns>A charged isotopic distribution with the same abundances.</returns>
32
+ [ Obsolete ( "Use CreateChargedDistribution(int charge, double chargeCarrier) instead." ) ]
33
+ IChargedIsotopicDistribution CreateChargedDistribution ( int charge , bool positiveCharge ) ;
24
34
25
- /// <summary>
26
- /// Creates a charged isotopic distribution.
27
- /// </summary>
28
- /// <param name="charge">The charge.</param>
29
- /// <param name="positiveCharge">if set to <c>true</c> [positive charge] .</param>
30
- /// <returns>A charged isotopic distribution with the same abundances.</returns>
31
- IChargedIsotopicDistribution CreateChargedDistribution ( int charge , bool positiveCharge = true ) ;
35
+ /// <summary>
36
+ /// Creates a charged isotopic distribution.
37
+ /// </summary>
38
+ /// <param name="charge">The charge.</param>
39
+ /// <param name="chargeCarrier">The charge carrier .</param>
40
+ /// <returns>A charged isotopic distribution with the same abundances.</returns>
41
+ IChargedIsotopicDistribution CreateChargedDistribution ( int charge , double chargeCarrier = Utility . Proton ) ;
32
42
33
- /// <summary>
34
- /// Clones the distribution and shifts it by a mass (Da) value.
35
- /// </summary>
36
- /// <param name="shift">The shift mass in daltons (Da).</param>
37
- /// <returns></returns>
38
- IIsotopicDistribution CloneAndShift ( double shift ) ;
39
- }
43
+ /// <summary>
44
+ /// Clones the distribution and shifts it by a mass (Da) value.
45
+ /// </summary>
46
+ /// <param name="shift">The shift mass in daltons (Da).</param>
47
+ /// <returns>The cloned distribution shifted by the specified mass.</returns>
48
+ IIsotopicDistribution CloneAndShift ( double shift ) ;
40
49
}
0 commit comments