Determining the presence of characteristic fragmentation length-scales in filaments
S. D. Clarke, G. M. Williams, J. C. Ib\'a\~nez-Mej\'ia, S. Walch

TL;DR
This study evaluates various techniques for detecting characteristic fragmentation length-scales in filaments, demonstrating the effectiveness of certain methods and providing a new open-source library for analysis.
Contribution
The paper introduces a comprehensive analysis of fragmentation detection methods, develops null hypothesis tests, and presents the FragMent library for filament fragmentation analysis.
Findings
Nearest neighbour and minimum spanning tree methods reliably detect length-scales.
Fourier power spectrum and Nth nearest neighbour are less effective unless scatter is low.
Larger core samples (N>20) are needed to distinguish single-tier from two-tier fragmentation.
Abstract
Theories suggest that filament fragmentation should occur on a characteristic fragmentation length-scale. This fragmentation length-scale can be related to filament properties, such as the width and the dynamical state of the filament. Here we present a study of a number of fragmentation analysis techniques applied to filaments, and their sensitivity to characteristic fragmentation length-scales. We test the sensitivity to both single-tier and two-tier fragmentation, i.e. when the fragmentation can be characterised with one or two fragmentation length-scales respectively. The nearest neighbour separation, minimum spanning tree separation and two-point correlation function are all able to robustly detect characteristic fragmentation length-scales. The Fourier power spectrum and the Nth nearest neighbour technique are both poor techniques, and require very little scatter in the core…
| Method | Fragmentation type | Realisations | Median | Interquartile range | Mean | Standard deviation |
|---|---|---|---|---|---|---|
| Nearest neighbour | Single-tier | Single | 0.338 pc | 0.049 pc | 0.325 pc | 0.060 pc |
| Nearest neighbour | Single-tier | All 100 | 0.347 pc | 0.117 pc | 0.353 pc | 0.091 pc |
| Nearest neighbour | Two-tier | Single | 0.124 pc | 0.151 pc | 0.180 pc | 0.121 pc |
| Nearest neighbour | Two-tier | All 100 | 0.194 pc | 0.216 pc | 0.232 pc | 0.131 pc |
| Minimum spanning tree | Single-tier | Single | 0.367 pc | 0.041 pc | 0.355 pc | 0.059 pc |
| Minimum spanning tree | Single-tier | All 100 | 0.395 pc | 0.129 pc | 0.396 pc | 0.098 pc |
| Minimum spanning tree | Two-tier | Single | 0.244 pc | 0.207 pc | 0.241 pc | 0.126 pc |
| Minimum spanning tree | Two-tier | All 100 | 0.322 pc | 0.270 pc | 0.307 pc | 0.153 pc |
| Method | Positives | Negatives | Recommended |
|---|---|---|---|
| use | |||
| Nearest neighbour | Simple. | Tendency to smaller separation | |
| separation | Robustly detects single | values. | |
| length-scales. | Typically insensitive to multiple | ||
| length-scales. | |||
| Minimum spanning tree | Simple. | - | |
| edge length | No tendency to smaller | ||
| separation values. | |||
| Can detect single and multiple | |||
| length-scales. | |||
| Nth nearest neighbour | Simple. | The same as for nearest neighbour. | |
| Spurious features can appear which | |||
| are not related to real length-scales. | |||
| Two-point correlation | Robustly detects single and | Complex appearance when there are | |
| function | multiple length-scales. | multiple length-scales | |
| Includes an inbuilt | |||
| null-hypothesis test. | |||
| Fourier power spectrum | No core identification needed | Only robustly detects length-scales | |
| when there is little scatter around | |||
| them. |
| Realisations | Mean NN | Median NN | Mean MST | Median MST | NN KS test | MST KS test |
|---|---|---|---|---|---|---|
| Single-tier | 80 | 61 | 88 | 100 | 51 | |
| Two-tier | 2 | 20 | 7 | 31 | 1 | |
| ‘Long’ two-tier | 62 | 43 | 86 | 94 | 29 |
| Frequentist (section 5.2.1) | ||||
|---|---|---|---|---|
| Realisations | Single-tier selected | Single-tier strongly | Two-tier selected | Two-tier strongly |
| /positively selected | /positively selected | |||
| Single-tier | 100 (100) | 99 () | 0 (0) | (0) |
| Two-tier | 87 (90) | 71 (75) | 13 (10) | (0) |
| ‘Long’ two-tier | 33 (38) | 3 (3) | 67 (62) | (21) |
| Bayesian (section 5.2.2) | ||||
| Single-tier | 100 (100) | 54 (60) | 0 (0) | (0) |
| Two-tier | 75 (80) | 4 (0) | 25 (20) | (0) |
| ‘Long’ two-tier | 61 (68) | 4 (5) | 39 (32) | (14) |
| median error | maximum error | time taken (sec) | speed-up factor | |||
| Exact | n/a | 22,500,000 | n/a | n/a | 377.785 | 1.00 |
| 4 | 22,500,000 | 10.33 | 5.903 | 64.00 | ||
| 4 | 22,500,000 | 6.179 | 61.13 | |||
| 4 | 22,500,000 | 8.427 | 44.81 | |||
| 4 | 22,500,000 | 24.062 | 15.70 | |||
| 1 | 4 | 22,500,000 | 101.334 | 3.73 | ||
| 8 | 22,500,000 | 5.667 | 67.00 | |||
| 16 | 22,500,000 | 5.509 | 68.56 | |||
| 8 | 2,250,000 | 2.98 | 0.495 | 103.18 | ||
| 8 | 2,250,000 | 0.697 | 73.75 | |||
| 8 | 225,000 | 2.57 | 152.30 | 0.044 | 133.76 | |
| 8 | 225,000 | 0.94 | 0.074 | 78.77 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Determining the presence of characteristic fragmentation length-scales in filaments
S. D. Clarke1, G. M. Williams2, J. C. Ibáñez-Mejía1 and S. Walch1,3.
1I. Physikalisches Institut, Universität zu Köln, Zülpicher Str. 77, D-50937 Köln, Germany
2Centre for Astrophysics Research, School of Physics, Astronomy and Mathematics, University of Hertfordshire,
College Lane, Hatfield, Al10 9AB, UK
3Cologne Centre for Data and Simulation Science, Univeristy of Cologne, Cologne, Germany,
www.cds.uni-koeln.de E-mail: [email protected]
Abstract
Theories suggest that filament fragmentation should occur on a characteristic fragmentation length-scale. This fragmentation length-scale can be related to filament properties, such as the width and the dynamical state of the filament. Here we present a study of a number of fragmentation analysis techniques applied to filaments, and their sensitivity to characteristic fragmentation length-scales. We test the sensitivity to both single-tier and two-tier fragmentation, i.e. when the fragmentation can be characterised with one or two fragmentation length-scales respectively. The nearest neighbour separation, minimum spanning tree separation and two-point correlation function are all able to robustly detect characteristic fragmentation length-scales. The Fourier power spectrum and the Nth nearest neighbour technique are both poor techniques, and require very little scatter in the core spacings for the characteristic length-scale to be successfully determined. We develop a null hypothesis test to compare the results of the nearest neighbour and minimum spanning tree separation distribution with randomly placed cores. We show that a larger number of cores is necessary to successfully reject the null hypothesis if the underlying fragmentation is two-tier, . Once the null is rejected we show how one may decide if the observed fragmentation is best described by single-tier or two-tier fragmentation, using either Akaike’s information criterion or the Bayes factor. The analysis techniques, null hypothesis tests, and model selection approaches are all included in a new open-source Python/C library called FragMent.
keywords:
ISM: clouds - ISM: kinematics and dynamics - ISM: structure - stars: formation
††pagerange: Determining the presence of characteristic fragmentation length-scales in filaments–A.2.1††pubyear: 2002
1 Introduction
The Herschel Space observatory has shown that filaments are abundant in the ISM, both in the diffuse and the dense molecular gas. Moreover, filaments are observed to fragment, harbouring numerous protostellar and prestellar cores, acting as an intermediate step between molecular clouds and star formation (André et al., 2010; Könyves et al., 2015; Marsh et al., 2016).
Due to their prevalence and importance in star formation, there have been a number of theoretical papers studying the properties of filaments. It has been shown that a filamentary geometry leads to longer global collapse timescales compared to equally dense spheres. As such, smaller perturbations are able to grow and produce cores before global collapse over takes them, making filaments excellent sites for core formation (Burkert & Hartmann, 2004; Pon et al., 2012; Clarke & Whitworth, 2015). Furthermore, perturbation studies suggest that there exist a characteristic fragmentation scale. Such studies of equilibrium filaments show that the fastest growing perturbation has a wavelength of roughly four times the diameter (Inutsuka & Miyama, 1992; Fischera & Martin, 2012). Perturbations with this fastest growing wavelength dominate over others when realistic density perturbations are used, leading to a filament fragmented into a series of roughly evenly spaced cores (Inutsuka & Miyama, 1997; Clarke, Whitworth & Hubber, 2016).
Recent work that goes beyond the equilibrium model shows that fragmentation is more complicated; the fastest growing mode is no longer linked to the diameter but rather to the accretion rate onto, and temperature of the filament (Clarke, Whitworth & Hubber, 2016). The addition of turbulence further complicates the fragmentation process. When gravity dominates over turbulence a two-tier hierarchical fragmentation occurs; the filament first fragments with a large-scale separation determined by the fastest growing mode; then the newly formed clumps subsequently fragment on the Jeans length. When turbulence dominates, the fragmentation of the filament is no longer linked to the filament’s properties but to the turbulent properties, namely the mode with the most energy (Clarke et al., 2017). A high level of turbulence also leads to filaments fragmenting into sub-filaments. Cores are then located on these sub-filaments or at the junction of two or more sub-filaments (Clarke et al., 2017, 2018). This behaviour has been seen in recent high resolution observations (Tafalla & Hacar, 2015; Hacar, Tafalla & Alves, 2017; Hacar et al., 2018).
As the spacing of cores may contain information about the filament and its turbulence, observers have attempted to measure it (Zhang et al., 2009; Jackson et al., 2010; Miettinen et al., 2012; Busquet et al., 2013; Kainulainen et al., 2013; Lu et al., 2014; Beuther et al., 2015; Henshaw et al., 2016; Teixeira et al., 2016; Kainulainen et al., 2017; Williams et al., 2018). A variety of techniques, as detailed in the next section, have been used to determine if a characteristic fragmentation length-scale exists. However, it is not clear how sensitive these techniques are when applied to filaments, or when multiple fragmentation length-scales are present.
In this paper, we present a study of the sensitivities of fragmentation analysis techniques commonly used in the literature. In Section 2, we detail the fragmentation analysis techniques studied. In Section 3, we show the method used to produce synthetic filaments with one or two characteristic fragmentation length-scales. In Section 4, we present the results from applying the fragmentation analysis techniques to these synthetic filaments. In Section 5, we develop methods for testing the statistical significance of the results and determining the number of characteristic fragmentation length-scales. In Section 6, we summarise our conclusions.
2 Fragmentation techniques
The fragmentation analysis techniques used in the literature can be split into two groups: those that work on point data (i.e. core locations), and those that work on column density maps/profiles. Here we investigate five different techniques, four point data techniques: the nearest neighbour separation, the minimum spanning tree, the Nth nearest neighbour separation, and the two-point correlation function; and one column density technique: the Fourier power spectrum. We compile these five methods into an open-source Python/C package called FragMent for use by the community.
2.1 Nearest neighbour separation
The nearest neighbour (NN) separation is a simple method for studying the fragmentation in filaments and to determine the existence of characteristic length-scales. This technique requires one to find the nearest neighbour of every core, and then study the mean and standard deviation of this distribution. If the spread around the average is small then it is indicative of a characteristic fragmentation length-scale. Typically, to test the statistical significance of the resulting distribution of spacings, one compares to a suite of Monte Carlo simulations of randomly placed cores with no characteristic spacing.
2.2 Minimum spanning tree
The minimum spanning tree (MST) is a subset of the complete graph that minimises the sum of the edge lengths while connecting every data point without loops (Gower & Ross, 1969). For a straight filament, the minimum spanning tree reduces to a set of edges which join a core to the core that is next along the filament. The unique distribution of edge lengths is examined for characteristic length-scales in much the same way as the nearest neighbour separation distribution. Comparisons with minimum spanning trees constructed using randomly placed cores can be used to estimate the statistical significance of the results.
2.3 Nth nearest neighbour separation
The Nth nearest neighbour separation is an extension of the nearest neighbour technique. Here the separation between every pair of cores is measured. This results in a distribution of spacings for each Nth neighbour. The mean and standard deviation of each of these distributions is plotted against each other. If there exists a local minimum in this plot then it is considered a characteristic length-scale. This method has the advantage that it is not dependent on only the nearest neighbour separation, but contains information on multiple scales.
2.4 Two-point correlation function
The two-point correlation function at a distance is defined as (Landy & Szalay, 1993):
[TABLE]
where is the normalised distribution of separation distances of the complete graph constructed from the data points (i.e. core locations); is the same but for the complete graph constructed from a set of randomly placed positions of the same size as the data points; is the normalised distribution of separation distances between every data point and every random position. Due to the use of random positions, this calculation is repeated tens of thousands of times so that the distribution of is well sampled. If the data points are randomly distributed then . Distances where correspond to enhancement and suggest a characteristic length-scale; distances where are those that exhibit a deficit of separations compared to a random distribution.
2.5 Fourier power spectrum
A Fourier transform is able to detect the presence of periodic features, making it useful to study the existence of characteristic length-scales. There are two possible methods to construct a Fourier transform to study fragmentation scales: a 1D Fourier transform of the column density profile along the spine of the filament, and the 2D Fourier transform of the entire column density map. The information of the 2D Fourier transform is compressed by constructing a radially averaged power spectrum. Here we only investigate the 1D Fourier transform as it is the most sensitive. A characteristic length-scale will appear in a power spectrum as an excess at a certain wavelength.
3 Synthetic filaments
To test these techniques, one requires column density maps of synthetic filaments with known characteristic fragmentation length-scales. A synthetic filament is made of two components: the filament itself, with column density , and the cores, with column density . The filament can be modelled as a Plummer-like profile (Whitworth & Ward-Thompson, 2001), and the cores can be modelled as 2D Gaussians.
A Plummer-like column density profile takes the form:
[TABLE]
where is the central column density of the filament, is the inner flattening radius, and is the exponent defining the power-law at large radii. Observations suggest that filaments may be characterised by Plummer-like profiles with (Arzoumanian et al., 2011).
The 2D Gaussian profile takes the form:
[TABLE]
where , are the co-ordinates of the core, is the central column density of the core, and is related to the Full Width Half Maximum (FWHM) by the expression . Note that these cores are perfectly circular and have the same central column density; this is not the case for real filaments but will not affect the point data techniques as they require only the core centre and is the optimal case for the Fourier transform.
The synthetic filament is described by the combination of these two components:
[TABLE]
where is the number of cores in the filament. Thus the model contains 5 parameters: . The values of these parameters, unless otherwise stated, are:
[TABLE]
The column density map is .
The spacing between two cores is determined by sampling a random number from a Gaussian distribution. The mean of the Gaussian, , is equivalent to a characteristic fragmentation length-scale, and the standard deviation, , is equivalent to some underlying scatter around this length-scale. Cores continue to be placed until the final position is greater than 4 pc, the extent of the map. The cores are placed on the long axis of the filament. For filaments mimicking a two-tier fragmentation process, the spacing is a random number drawn from a probability density function made up of two Gaussian distributions (see figure 1). For simplicity, the mean of the Gaussian approximating the small-scale spacing is taken to be some factor, , of the mean of the Gaussian approximating the large-scale spacing. The standard deviation of the small-scale spacing is the same as that of the large-spacing. Figure 2 shows four examples of synthetic filaments with cores along them.
For a fragmentation analysis technique to be successful it should be able to determine the mean of the Gaussian distribution(s) from which the core spacing was sampled. The locations of the cores are determined by using a dendrogram111We use the astrodendro Python package, http://www.dendrograms.org. The parameters used for the dendrogram are: minvalue=, mindelta=10, minnpix=4. This is done to better approximate the limitations of observations, e.g. the introduction of a minimum core separation due to the beam-size and core identification method. In our model the choice of minnpix leads to a minimum core separation of 0.04 pc. This causes one or two core separations to be missed in some realisations.
These synthetic filaments are perfectly straight and aligned with the -axis. This is not the case for real filaments. However, one may first ‘straighten’ the filament before beginning the analysis, i.e. identifying the spine of the filament, straighten it and align it with the -axis (referred to as a deprojected filament by Williams et al., 2018, Watkins et al. in prep.). We encourage this technique, where possible, as it effectively reduces the problem to 1D and removes the complications of filament curvature. An algorithm for straightening filaments is provided in FragMent, requiring the column density / integrated intensity map and the spine of the filament (see appendix A.1 for details).
4 Results
Here we present the results of each technique separately. For a set of parameters describing a synthetic filament we produce 100 realisations to achieve good number statistics. The fiducial parameters for single tier fragmentation are: , . The fiducial parameters for two-tier fragmentation are: , , and . For the fiducial single-tier fragmentation parameters the 100 realisations contain between 7 and 11 cores. For the fiducial two-tier fragmentation parameters the 100 realisations contain between 11 and 16 cores.
When a single realisation is shown, it is always the same realisation (seed 1) so that the methods can be compared using the same data. The results from all 100 realisations are combined and shown, where possible, to study the method’s sensitivity when one has robust number statistics and sample size is not an issue. A summary of the positives and negatives of each method is shown in table 2.
4.1 Nearest neighbour separation
The nearest neighbour separation for cores returns a distribution of separations. The top row of figure 3 shows the distribution of separations from one realisation of the fiducial single-tier fragmentation (left), and the distribution from all 100 realisations (right). Both distributions are peaked and relatively narrow, indicating that the method is detecting the underlying characteristic separation.
The median, , and mean, , of the single realisation are 0.338 pc and 0.325 pc respectively, with an interquartile range, , and standard deviation, , of 0.049 pc and 0.060 pc. The average of the distribution is lower than that of the characteristic separation, 0.4 pc, and the width of the distribution is also narrower than that of the probability density function the spacing was sampled from, 0.1 pc. For the distribution of separations from all 100 realisations: 0.347 pc with =0.117 pc, and =0.353 pc with =0.091 pc. Thus, the nearest neighbour separation technique systematically leads to lower estimates of the characteristic spacing, if one exists.
The bottom row of figure 3 shows the distribution of separations from one realisation of the fiducial two-tier fragmentation (left), and the distribution from all 100 realisations (right). The distribution from the single realisation is strongly peaked at 0.08 pc, but does not appear to be bimodal. The distribution from all 100 realisations is clearly bimodal, with peaks at 0.1 pc and 0.35 pc; however, the peak at small scales is significantly larger than that at larger scales, which is not the case in the underlying PDF of spacings used. For the single realisation distribution: =0.124 pc with =0.151 pc, and =0.180 pc with =0.121 pc. For all 100 realisations: 0.194 pc with =0.216 pc, and =0.232 pc with =0.131 pc. It is clear that the median/mean and interquartile range/standard deviation are poor descriptors of a bimodal distribution. Table 1 summaries the averages and width measurements.
In summary, the nearest neighbour separation distribution is a simple method which can detect the presence of a single characteristic fragmentation length-scale. However, by definition it selects only the smallest separation of each core, leading to a bias to underestimate the characteristic fragmentation length-scale. This sensitivity to smaller separations also causes the method to be weak at detecting multiple fragmentation length-scales.
4.2 Minimum spanning tree
The minimum spanning tree for cores returns edges. For a straightened filament the MST is simply the connection of all cores along the filament. The top row of figure 4 shows the distribution of edge lengths for one realisation of the fiducial single-tier fragmentation (left), and the distribution from all 100 realisations (right). The distributions are strongly peaked and narrow, thus able to detect the underlying characteristic separation.
For the distribution from the single realisation: =0.367 pc with =0.041 pc, and =0.355 pc with =0.059 pc. The median/mean is closer to the underlying characteristic spacing, 0.4 pc, than that found by using the nearest neighbour separation. For the distribution of edge lengths from all 100 realisations: =0.395 pc with =0.129 pc, and =0.396 pc with =0.098 pc. Thus, the MST is able to recover the underlying spacing distribution better than the nearest neighbour separation method. This is because the nearest neighbour method has a preference for shorter separations, and some separations may be counted twice if two cores are each others nearest neighbour. This is not the case for the MST method.
The bottom row of figure 4 shows the distribution of edge lengths from one realisation of the fiducial two-tier fragmentation (left), and the distribution from all 100 realisations (right). The distribution from the single realisations is clearly bimodal, unlike that recovered using the nearest neighbour separation method. The peaks are located at 0.08 pc and 0.33 pc, close to the underlying characteristic lengths, 0.08 pc and 0.4 pc. The distribution of edge lengths from all 100 realisations is also clearly bimodal, with peaks 0.12 pc and 0.4 pc, but unlike the results from the nearest neighbour method, the two peaks have comparable heights, similar to the underlying PDF.
The minimum spanning tree method is similar to the nearest neighbour method but does not have its bias to smaller separations. This leads the minimum spanning tree method to better estimate the underlying characteristic length-scale and to more robustly detect the presence of multiple length-scales.
4.3 Nth nearest neighbour separation
The Nth nearest neighbour separation technique returns an by array for cores where the Nth column is the separation between each core and its Nth neighbour. Each column can be reduced to an average and width; either the mean and standard deviation (blue lines) or the median and interquartile range (red lines). The top row of figure 5 shows the average plotted against the width for one realisation of the fiducial single-tier fragmentation (left), and the results from all 100 realisations (right). To obtain the distribution from all 100 realisations the distributions of separations of each Nth neighbour were combined and then averaged (rather than the distribution of each realisation’s average Nth neighbour separation being averaged).
As there is a single characteristic wavelength for fragmentation, there should exist a single ‘minimum’ which is the nearest neighbour. Both the median and mean show that the 1st neighbour separation is the neighbour with the smallest width distribution. Increasing neighbour number have wider distribution of separations. However, the median shows suppressed interquartile ranges until the 4th nearest neighbour which one may, incorrectly, interpret as a broad range of characteristic fragmentation length-scales. In other realisations, when using the median, there exist local minima which would be identified as characteristic spacings. Thus, the median-interquartile range can be misleading when using the Nth nearest neighbour method.
The middle row of figure 5 shows the same plots for the fiducial two-tier fragmentation realisations. Here, one would expect to see minima at both, the short (0.08 pc) and long (0.4 pc) characteristic spacings. These minima are not present. Instead, the two-tier fragmentation plots look very similar to the single-tier fragmentation plots. The bottom row of figure 5 shows the same plots for the two-tier fragmentation realisations where the scatter of the input distribution, , is 2.5 times lower (the bottom-right plot of figure 2 is a single realisation with these parameters). Here there are tentative signs of a shallow local minimum at 0.4-0.5 pc in both the single realisation (left) and all 100 realisations (right) plots when considering the median. However as noted above, the median-interquartile range can be misleading and produce spurious minima which do not correspond to a real characteristic length-scale. The mean and standard deviation shows no strong indication of two-tier fragmentation.
Despite containing information on numerous scales the Nth nearest neighbour method appears insensitive to multi-scale fragmentation. This can be understood by the fact that the distributions of separations to each Nth neighbour are reduced to their average and width. As seen above in section 4.1, the average and width of a bimodal distribution, like the separation distributions obtained when multi-scale fragmentation exists, are poor descriptors of the distribution.
We conclude that the Nth nearest neighbour method is rather insensitive to multi-scale fragmentation. Moreover, when compared to the nearest neighbour method, no new information about the presence of a single characteristic fragmentation length-scale is gleaned from the use of the Nth nearest neighbour method. For these reasons we do not favour its use.
4.4 Two-point correlation function
The two-point correlation function is a continuous function made from a set of discrete points, i.e the separations between every pair of data points. A histogram or a Kernel Density Estimator (KDE) is used for this purpose. A KDE converts a set of discrete points into a continuous distribution by convolving each data-point with a kernel, in this case a Gaussian with a given width. In this work we use a KDE to produce the two-point correlation function due to its smoothness. The width of the kernel is determined using Scott’s method (Scott, 1992). The and are produced from 100,000 instances of randomly placed cores along the filament. Due to the large number of data points needing to be converted into a KDE, an approximate KDE using a tree structure is used. The evaluation of these approximate KDEs is between 50 to 100 times faster than the exact evaluation while errors are less than . Details can be found in appendix A.2.
The left panel of figure 6 shows the two-point correlation function of a single realisation with the fiducial single-tier fragmentation parameters. The determined width of the kernel is . The first significant peak (i.e. with a value above 0) is located at , close to the characteristic spacing of 0.4 pc. The signal is sufficiently strong that the higher order resonances are seen at 0.8, 1.2, 1.6 etc.. The left panel of figure 7 shows the position of the first 3 peaks which are statistically significant () from the two-point correlation functions resulting from the 100 realisations using the fiducial single-tier fragmentation parameters. The first peak has a narrow dispersion around the characteristic fragmentation length-scale at 0.4 pc. The next two peaks lie around the first and second harmonics at 0.8 pc and 1.2 pc. However, there exist significant scatter, showing that for numerous realisations the signal from the harmonics may not be strong and spurious peaks unrelated to the characteristic fragmentation scale may appear.
The right panel of figure 6 shows the results for a single realisation using the fiducial two-tier fragmentation parameters. Here, the two-point correlation function is far more complicated than the single tier case, showing multiple peaks which are not perfectly periodic. A peak exists at where , but not quite, and it corresponds to the small-scale spacing at 0.08 pc. There also exists a significant peak at which corresponds to the large-scale spacing at 0.4 pc. Between these two peaks is a smaller, but still significant, peak at . This is a superposition between the first and third peak, . Another such superposition occurs at , at . Without knowledge of the true characteristic spacings it is non-trivial to determine which of these peaks correspond to the underlying fragmentation length-scales.
As seen in the two panels of figure 6, the first few peaks are the only ones in the two-point correlation function which contain information on the characteristic filament fragmentation length-scales, later peaks are resonances and superpositions of the characteristic length-scales.
The right panel of figure 7 shows the position of the first 3 peaks which are statistically significant () from the two-point correlation functions resulting from the 100 realisations using the fiducial two-tier fragmentation parameters. The first significant peak aligns well with the small-scale spacing at 0.08 pc, and in those cases where this peak is not significant the first peak is found at the separation corresponding to the first superposition at 0.32 pc. The second peak in the two-point correlation function is well aligned with either the large-scale characteristic spacing at 0.4 pc, or one of the two superpositions at 0.32 and 0.48 pc. The third significant peak in the two-point correlation function is associated with the large-scale characteristic spacing, the upper superposition at 0.48 pc, or the first resonance of the large-scale characteristic spacing at 0.8 pc. Thus, the positions of the peaks of the two-point correlation function contain physically meaningful information but can be difficult to interpret.
When there exists a single characteristic fragmentation length-scale, the first significant peak corresponds to it. But when there are two characteristic length-scales () then one must consider the superposition between them, , meaning the first 3 peaks should be examined. For three characteristic length-scales () there can be up to 5 superpositions which may be significant, , meaning that the first 8 peaks must be considered. An observer has no prior knowledge of the number of characteristic fragmentation length-scales and so must instead deduce the minimum number of such length-scales with which one can explain the peaks in the two-point correlation function resulting from their data. The results of this deduction should then be compared to the model selection described in section 5.2.
As discussed in section 2.4, the evaluation of the two-point correlation function requires a comparison with randomly placed cores. When producing the randomly placed cores, one may place them randomly along the filament (as done above) or randomly in the observed 2D map (as done by Kainulainen et al., 2017). Therefore, we perform a test by re-evaluating the two-point correlation function of the same two-tier fragmentation realisation as shown in the right panel but randomly placing cores anywhere in the map (see figure 8). This leads to an enhancement at small-scale separations. Large-scale separations, pc, show a corresponding deficiency. Using this method therefore accentuates the statistical significance of small-scale separations in the sample at the price of larger-scale ones, and should thus be avoided. Moreover, as the hypothesis one wishes to test is if there exists a characteristic filament fragmentation length-scale one should strictly place the cores only along the filament.
The two-point correlation function appears to be a powerful tool with its ability to robustly detect single and multiple characteristic length-scales. However, its sensitivity causes complexity in its appearance and care must be taken in its interpretation. It should therefore be used in conjunction with the simpler minimum spanning tree and nearest neighbour methods. One must also take care with the placement of randomly placed cores to ensure one is testing the correct fragmentation scenario.
4.5 Fourier power spectrum
The Fourier transform does not require the core positions, but rather just the spine of the filament and the column density map. The top and middle panels of figure 9 show the column density profile along the filament spine for two realisations using the fiducial single-tier fragmentation parameters, and the corresponding normalised power spectrum of the Fourier transform. The power spectrum has been normalised such that where corresponds to the length of the filament, 4 pc. The top realisation is the one shown throughout this paper (see the leftmost panel of figure 2). The power spectrum in the top row shows a large peak at which corresponds to the characteristic spacing of 0.4 pc. However, it also shows numerous other peaks, which if one does not know the number of characteristic length-scales, could be interpreted as such. The middle row of figure 9 shows a second realisation using the same fiducial single-tier fragmentation parameters, here the largest peak occurs at , corresponding to a length-scale of pc. The rather small scatter ( pc for the fiducial set of parameters) in the underlying characteristic spacing is sufficient to produce considerable noise in the power spectrum. Reducing the scatter to 0.04 pc, as seen in the bottom row of figure 9, produces a power spectrum which is strongly peaked only at the characteristic length-scale and its resonances.
Figure 10 shows the column density profile along the filament spine for a single realisation using the fiducial two-tier fragmentation parameters (left), and the normalised power spectrum (right). While the largest peak is at , corresponding to the 0.4 pc large-scale characteristic spacing, it lies within a forest of peaks extending to . There is no evidence of a peak at , corresponding to the small-scale fragmentation spacing. Furthermore, the power spectrum appears similar to those seen in figure 9 where the fragmentation being modelled is only single-tier.
We conclude that the Fourier transform can robustly detect characteristic fragmentation length-scales only when there is little scatter; a situation unlikely to occur in real observations.
5 Discussion
5.1 Measuring the statistical significance of the results
One must test if the results found from one of the previously discussed methods is statistically significant. Here, we show a number of techniques included in FragMent which are used to address this. The results are summarised in table 3.
5.1.1 Null hypothesis testing
A null hypothesis test is a common technique for measuring the statistical significance of a result. The first step is to construct a ‘no-effect’ hypothesis with the aim of finding it false, termed the null hypothesis. One cannot prove that a data set comes from a certain distribution, only the likelihood of it coming from that distribution. Thus, the likelihood of the data set coming from the null hypothesis is calculated and converted into a -value. A -value is a measure of the likelihood that an outcome as, or more, extreme as the data set would result from the null hypothesis. As such, the -value lies between 0 and 1. The -value is compared against a certain threshold, , and if found to be greater than the threshold the null hypothesis cannot be rejected, if found to be less than the threshold then the null hypothesis can be rejected. Note that, if the null hypothesis is not rejected, it does not mean it is correct, one only has the power to reject. This is why the hypothesis that is tested against is constructed with the aim of finding it false. A typical value of the threshold is . This is the threshold used in this work.
Here the null hypothesis is that the cores in the filament are randomly placed along its length, i.e. there is no correlation between core positions and no characteristic spacing. To populate the distribution produced assuming the null hypothesis is true, 10,000 realisations of randomly placed cores are created, where is the number of cores in the data set, and analysed using the same method as the data set.
The nearest neighbour and minimum spanning tree techniques result in a distribution of separations which can be described by its median/mean and interquartile range/standard deviation, hereafter called the average and the width. For each of the 10,000 realisations of randomly placed cores the distribution average and width measurement is stored. These data are converted into a normalised 2D-PDF using a KDE. This 2D-PDF is the distribution of observed averages and widths if the null hypothesis is true. The average and width measurement of the data set can be placed in this 2D space and the probability of such an event given the null is calculated.
Figure 11 shows the 2D-PDF using the median/interquartile range and mean/standard deviation for both the nearest neighbour and the minimum spanning tree method. The nearest neighbour method (top row) produces PDFs which tend to small averages and widths due to its sensitivity to small separations. The minimum spanning tree PDFs (bottom row) have their most probable outcome at higher averages and widths than the nearest neighbour PDF. The mean/standard deviation PDFs are narrow in the mean but very wide in the standard deviation.
Figure 11 also shows, as a red dot, the average and width from the single-tier fragmentation realisation discussed in subsections 4.1 and 4.2. It is clear that the average and width is far from the peak of the 2D-PDF for both measures of the average and width, and both methods. The white contour is set at the same probability as the average and width of the data set, all regions of the PDF outside the contour are less probable to occur. A -value for the data set is constructed by integrating over the regions of the PDF outside this contour. For the nearest neighbour method the -value for the median/interquartile range and mean/standard deviation analysis are 0.0005 and 0.0001 respectively. For the minimum spanning tree method the -values are 0.0013 and 0.0016. In all cases the null can be rejected as the -value is below the threshold, , and one can say that the cores are not randomly placed. Thus, the average and width measurements of the distribution can be used to estimate the underlying characteristic spacing.
The -value for all 100 realisations of the single-tier fragmentation, using both methods, can be calculated. The left panel of figure 12 shows the histogram of -values for the single-tier fragmentation filaments. All -values less than 0.05 allow the null hypothesis to be rejected. For the nearest neighbour method, the null can be rejected and of the time when using the median/interquartile range and mean/standard deviation respectively. For the minimum spanning tree, the null can be rejected and of realisations when using the median/interquartile range and mean/standard deviation respectively. The mean/standard deviation has greater power to reject the null in both methods, while the the nearest neighbour method is nearly twice as powerful as the minimum spanning tree method when using the median/interquartile range. Both methods can therefore detect a single characteristic fragmentation length-scale and are typically statistically significant even with few cores ().
The same analysis can be applied to the two-tier fragmentation filaments; the right panel of figure 12 shows the histogram of the -values for all 100 realisations. It is clear that it is difficult to reject the null using either method. For the nearest neighbour method the median/interquartile range is better at rejecting the null but only has a success rate of . For the minimum spanning tree method, the median/interquartile range is also better and also has a success rate of . The average and width of the distribution of separations resulting from two-tier fragmentation are hard to distinguish from those of randomly place cores when using either method. This makes it difficult to obtain statistically significant signatures of the fragmentation with the low number statistics commonly encountered in observations.
5.1.2 Kolmogorov-Smirnov test
The Kolmogorov-Smirnov test (or the KS test) is a non-parametric test used to determine if two data-sets come from the same underlying distribution. As such, it is a null hypothesis test where the null hypothesis is that the two data-set do come from some underlying common distribution. The KS test determines the maximum distance between the cumulative distributions of the two data-sets, which can then be converted into a probability that such a distance occurs if the two data-sets arise from the same underlying distribution.
For each of the 100 single-tier and two-tier fragmentation realisations, we run the KS-test on the separation distribution, either from the nearest neighbour or minimum spanning tree method, and compare to the separation distribution produced from 10,000 realisation of randomly placed cores, analysed using the same method. Figure 13 shows the histogram of -values from the KS-test for both the single and two-tier fragmentation realisations.
For the single-tier fragmentation realisations (left), the KS-test is very powerful when determining the statistic significance of the results from the nearest neighbour method. The results from all 100 realisations are able to reject the null. It is less powerful for the minimum spanning tree method than the null hypothesis test presented in section 5.1.1; it is only able to reject the null hypothesis of the time.
For the two-tier fragmentation, few realisations are able to reject the null for either the minimum spanning tree or nearest neighbour method. The null can be rejected of the time for the nearest neighbour method, slightly better than the null hypothesis test presented in section 5.1.1. However, the null can only be rejected of the time when using the minimum spanning tree method, significantly worse than the previously presented null hypothesis test.
We also investigate the use of the Anderson-Darling (AD) test, which is similar to the KS test but is more sensitive to deviations from normality. The results are not improved and are therefore not shown. The AD-test is also included in FragMent.
The results of the nearest neighbour and minimum spanning tree methods when applied to filaments which have fragmented in a two-tier manner are hard to distinguish from the results of randomly placed cores. This is true if one uses the KS(AD) test or the median/mean and interquartile range/standard deviation measurements. It is clear that these two methods are not sufficiently sensitive to multi-length-scale fragmentation to produce statistically robust results when there are only a few cores. This can be understood by the fact these methods only determine a single separation, either the nearest neighbour or the next core along the filament, and so require a large number of data points to adequately sample the underlying distribution.
5.1.3 The effects of sample size
A larger number of cores should help produce more statistically significant results. We produce a set of ‘long’ filaments which are 8 pc long, and fragment in a two-tier manner using the fiducial parameters. These ‘long’ filaments contain between 20 and 30 cores, roughly doubling the number of cores.
Figure 14 shows the histograms of p-values from the null hypothesis test described above (5.1.1), and the KS-test. For the null hypothesis test, the minimum spanning tree method using the mean/standard deviation is able to reject the null of the time, a large improvement over the normal two-tier fragmentation data-set where one can reject the null only of the time. For the KS-test, the nearest neighbour method is able to reject the null hypothesis of the time, considerably better than the of the time when there are only 10-15 cores.
It appears that above cores one is able to reject the null most of the time if the fragmentation is more complicated than single-tier fragmentation. Below this number one may be able to reject the null, but it is significantly harder.
5.2 Single-tier vs two-tier fragmentation
A null hypothesis test can only provide the likelihood that the data-set is observed given a null hypothesis, here that there is no characteristic fragmentation length-scale. If the null hypothesis can be rejected, it is still unknown what type of non-random fragmentation exists. One may look at the results from the methods discussed and attempt to determine if the fragmentation is single-tier and can be described by a single characteristic fragmentation length-scale, or is two-tier and requires two such length-scales. Here we show two model selection methods included in FragMent: the frequentist approach using the Akaike information criterion, and the Bayesian approach using the odds ratio.
5.2.1 A frequentist model selection approach
The underlying distribution that produced a data-set is unknown; therefore, one constructs a model to approximate this distribution. As the model is approximate it contains less information; the better the model approximates the underlying distribution, the less information is lost. The Akaike information criterion (AIC) is an estimator of this lost information and can therefore be used as a model selection tool (Akaike, 1974).
The AIC of a model is defined as:
[TABLE]
where is the number of parameters of the model and is the maximum likelihood calculated from the model. It is clear that AIC penalises models with a high number of parameters ; such models require a corresponding increase in the log-likelihood to offset its effect. For small sample sizes this penalisation is insufficient and the AIC can over-fit data. This small-sample size bias can be corrected; the modified information criterion is typically called the AICc, defined as:
[TABLE]
where is the sample size (Sugiura, 1978). It is advisable to use the AICc over the AIC when the ratio is greater than for the model with the highest number of parameters (Burnham & Anderson, 2002). Note that as , AICc AIC; as such FragMent only determines the AICc.
The exact value of AICc is unimportant, it is the difference between the AICc values of the models which is important. More precisely, using the differences one may construct the Akaike weights, which allows one to estimate the evidence of each model considered. The Akaike weight for model is defined as,
[TABLE]
where is the difference between the AICc of model and the model with the minimum AICc, model , and is the number of models being compared (Akaike, 1978). From this definition the model which is favoured, model , has the minimum AICc and the maximum Akaike weight. If the weight of model is 10 times lower than that of model , then model is 10 times more likely and model can reasonably be rejected (Burnham & Anderson, 2002).
There are two models to be examined here: that the fragmentation can be described by a single characteristic length-scale with some intrinsic scatter, or the fragmentation can be described by two characteristic length-scales, both with some scatter. These models are the same as the models used to construct the synthetic filaments. The single-tier model can be described by 2 parameters, the mean and standard deviation of a Gaussian. The data likelihood from this model is given by:
[TABLE]
where is the data point from a set of , and is the model parameter vector, (). The two-tier model can be described by 5 parameters, the mean and standard deviation of the two Gaussians and the ratio of the amplitude between the two, . The data likelihood from this model is given by:
[TABLE]
where is the model parameter vector, (), and .
Here, the data is the separation distribution resulting from applying the minimum spanning tree method. The minimum spanning tree method is used as it does not over-sample small spacings as the nearest neighbour approach does. Determining the data-likelihood, , while well sampling the parameter range can be computationally expensive. Moreover, it is only the maximum data likelihood which is needed for the calculation of the AICc. Therefore, FragMent uses a Monte-Carlo Markov-Chain routine (emcee, Foreman-Mackey et al., 2013) to efficiently sample the data-likelihood and find the maximum.
Figure 15 shows histograms of the evidence ratio (i.e. the weight of the ‘best’ model, , over the weight of the other model, ) for all 100 realisations of the fiducial parameters of both single-tier (left) and two-tier (right) fragmentation. For the single-tier fragmentation realisations, the single-tier model is selected as the best model of the time, and of the time the evidence ratio is greater than ten. It is therefore easy to determine the presence of single-tier fragmentation when it exists even with the small sample size here, . For the two-tier fragmentation realisations, the two-tier model is only selected 13 of the time, and only 4 of the time is the two-tier model selected and has an evidence ratio greater than 10. The single-tier model is selected 87 of the time, and of the time with an evidence ratio greater than 10. The increased number of parameters in the two-tier model often out-weighs the better data-likelihood found, and the two-tier realisations are mistaken for single-tier fragmentation. This is in line with the results from the null hypothesis testing in section 5.1, which showed that it is difficult to reject the null hypothesis that the cores are randomly placed.
5.2.2 A Bayesian model selection approach
Model selection in the Bayesian framework is achieved using the odds ratio, , defined as:
[TABLE]
between two models, and , given data-set (Ivezić et al., 2014). Using Bayes’ rule this can be rewritten as,
[TABLE]
where is the Bayes factor between the two models. If there is no prior information favouring one model over the other then , and the odds ratio reduces to the Bayes factor.
The term is called the marginal likelihood of model . It is often also called the evidence of model . The marginal likelihood can be calculated as follows,
[TABLE]
where is the parameter space of the model. One may notice that the integrand is the un-normalised posterior, and thus the marginalised likelihood is the normalisation constant for the posterior.
For the two models under consideration here, single-tier and two-tier fragmentation, the data-likelihoods are given above in section 5.2.1. The priors used, , are flat so as to contain as little information as possible, i.e. . To normalise the priors and find the constant , boundaries are placed on the values of each of the parameters and are given by:
[TABLE]
Currently FragMent calculates the posterior in a grid of evenly spaced evaluation points, where is a positive integer and is the number of parameters of the model. This is inefficient and may require a high for strongly peaked posteriors. For the realisations studied here we find that is sufficient such that when is doubled the normalisation constant changes by . In the future a nested-sampling method (such at the one used in MultiNest, Feroz, Hobson & Bridges, 2009) will be added to FragMent, allowing for a more efficient sampling of the posterior and faster calculation of the marginal likelihood.
To interpret the odds ratio, Kass & Raftery (1995) present a scale of evidence, modified from an earlier scale suggested by Jeffreys (1961). It is as follows:
[TABLE]
Figure 16 shows the odds ratio for all 100 realisations of the fiducial parameters of both single-tier and two-tier fragmentation. We assume both models are equally likely and so the odds ratio is equal to the Bayes factor. For the single-tier fragmentation realisations, the single-tier model is favoured 100 of the time. However, the Bayes factors are rather low, all below 8. have a Bayes factor above 3 and so can be interpreted as positive evidence for the single-tier model over the two-tier model. Here the frequentist approach is more powerful than the Bayesian one, as it is able to strongly support the single-tier model 99 of the time.
For the two-tier fragmentation realisations, in of cases the two-tier model is favoured, and of the time, the Bayes factor is greater than 3 in favour of the two-tier model. This is better than the frequentist approach, which only selected the two-tier case of the time and favoured the single-tier model strongly of the time. Here there is only positive support for the single-tier model of the time. However, it is clear that the Bayesian approach has the same difficulty as the frequentist approach: it rarely decisively favours the correct two-tier model with such low number statistics.
Table 4 summarises the rate at which each model is favoured using the two different approaches. In brackets it also shows the rate at which each model is favoured when one examines only the realisations which could reject the null hypothesis test; however, there is very little difference between this subset and the whole data set.
As well as returning the favoured model, the two approaches to model selection return either the best-fit model parameters (frequentist), or a model parameter posterior (Bayesian). If the model is strongly supported then one may use these to make inferences about the characteristic fragmentation length-scales, complementing the methods discussed in section 4.
5.2.3 The effects of sample size
For the small number of cores considered here (), both model selection techniques erroneously, strongly favour the single-tier fragmentation model when the actual fragmentation pattern is two-tier. Here we consider the ‘long’ (8 pc) two-tier fragmentation filaments introduced in section 5.1.3, which contain between 20 and 30 cores (roughly double the sample size).
The left panel of figure 17 shows the histogram of the evidence ratio for the ‘long’ two-tier fragmentation filaments using the fiducial parameters. Here the two-tier model is selected 67 of the time, and 24 of the time with an evidence ratio greater than 10. However, when the single-tier model is selected, it rarely has an evidence ratio greater than 10, only of the time.
The right panel of figure 17 shows the histogram of the logarithm of the Bayes factors for all 100 ‘long’ two-tier fragmentation realisations using the fiducial parameters. Here the maximum Bayes factor is . The two-tier fragmentation model is favoured of the time, positively favoured of the time, and strongly favoured of the time. The single-tier model is only positively favoured of the time. This is slightly worse than the frequentist approach, which strongly supports the two-tier model of the time.
With an increase in the number of cores the model selection improves in two ways: the single-tier is no longer favoured strongly the majority of the time, and the two-tier model becomes strongly favoured a sizeable minority of the time. It is difficult to decisively favour the correct model for two-tier fragmentation but when one can be confident that they are unlikely to strongly favour the incorrect model.
6 Conclusions
Numerous theoretical works suggest that the fragmentation pattern of a filament contains information about the dynamical state of the filament, e.g. the relative importance of magnetic fields, gravity and turbulence. A number of techniques can be used, and have been used, in observational studies to determine characteristic fragmentation length-scales so that they may be compared to theory.
The nearest neighbour separation, minimum spanning tree separation, and two-point correlation function are all sensitive to characteristic fragmentation length-scales and should be used together when investigating the fragmentation of a filament. The Nth nearest neighbour and Fourier power spectrum are both poor techniques which are insensitive to characteristic fragmentation length-scales when there exists some variance in the value, as expected from real filaments. We discourage their use.
While some methods are sensitive to characteristic fragmentation length-scales, one must test the results for statistical significance. We devise a null hypothesis test, where the null hypothesis states that the cores are randomly placed along the filament, using the average of the separation distribution and its width. This is used to evaluate the results of the nearest neighbour and minimum spanning tree methods. The two-point correlation function includes a test for significance in its calculation. A Kolmogorov-Smirnov test is also used to test the results of the nearest neighbour and minimum spanning tree methods.
When fragmentation is single-tier, the nearest neighbour, minimum spanning tree and two-point correlation function can routinely return statistically significant results, even if the number of cores is low, . When fragmentation is two-tier, the two-point correlation function is the only method to routinely produce statistically significant results for low number statistics (). However, when the number statistics improve (), the nearest neighbour and minimum spanning tree methods can also return significant results. The nearest neighbour approach is typically better at rejecting the null when one uses the KS test, while the minimum spanning tree method is better at rejecting the null when comparing the average and width of the separation distribution against randomly placed cores.
If the null is rejected, there is the question of how many characteristic fragmentation length-scales best describe the fragmentation. This can be addressed with the frequentist and Bayesian model selection techniques to determine if the fragmentation is best described by single-tier fragmentation or two-tier fragmentation. This should be applied to the minimum spanning tree separation distribution as it better represents the underlying separations, unlike the nearest neighbour separation distribution, which over-samples small separations by definition. The frequentist approach using the Akaike information criterion is typically better at selecting the correct model, and favouring it strongly. As with the null hypothesis test, it is difficult to select the two-tier fragmentation model when the fragmentation is two-tier. Typically at least 20 cores are needed to correctly favour the two-tier model.
The fragmentation techniques, statistical significance tests, and model selection approaches shown here are provided to the community as an open-source Python/C library called FragMent at the URL https://github.com/SeamusClarke/FragMent.
7 Acknowledgments
The authors would like to thank the anonymous referee for their helpful comments on the paper. SDC and SW acknowledge support from the ERC starting grant No. 679852 ‘RADFEEDBACK’. GMW acknowledges support from the UK’s Science and Technology Facilities Council under grant number ST/R000905/1. JCIM and SW thank the DFG for funding through the Collaborative Research Center (SFB956) on the ‘Conditions and impact of star formation’ (sub-project C5).
Appendix A FragMent: a Python/C package to study filament fragmentation
FragMent includes the fragmentation techniques, statistical significance tests, and model selection approaches detailed in this paper, as well as an algorithm for straightening filaments. While the aim of this work is to study filament fragmentation, FragMent is written in such a way that all functions can be applied to any selection of 2D points. FragMent is open source and can be found at https://github.com/SeamusClarke/FragMent
Here we detail 2 novel techniques that are included in FragMent: the method by which one may straighten a filament, and a tree-based algorithm to produce an approximate KDE.
A.1 Straightening filaments
In real filaments there exists curvature in the spine, resulting in the local radial axis of the filament not being perpendicular to the global longitudinal axis of the filament. To straighten a filament means to align the filament spine with the -axis and for the radial profile at all points to lie parallel to the -axis. This is seen in an example synthetic filament in figure 18.
To straighten a filament, FragMent requires the column density / integrated intensity map and the list of spine pixel co-ordinates. The list of spine co-ordinates must be ordered such that the next physical spine point follows the current, i.e. the spine points go from one end to the other in a continuous manner. There are two methods for determining the radial profile: interpolation and a weighted average. Interpolation is used by Williams et al. (2018) when they produce their straighten filaments. Both methods are included in FragMent and shown in 18. The red dots shown on 18 represent ‘core positions’ and how they appear when mapped onto the straightened filament using the FragMent function MapCores.
For both methods, the first step is to fit a order polynominal to the spine points. This is done so that an accurate tangent can be found at every spine point. The tangent is the local longitudinal axis of the filament and thus the line perpendicular to it is the radial axis. When the value along the radial axis is determined by interpolation, we use the Taylor expansion up to and including the second order terms. When the value along the radial axis is determined by a weighted average of nearby pixels, the weighting function is a Gaussian:
[TABLE]
where is a smoothing-length and is the distance between the pixel and the evaluation point.
For the interpolation method, there are 3 user-defined parameters: the distance to which the radial profile is measured, maxdist; the number of evaluation points along the radial profile, npix; and the order of the polynominal used to fit the spine points, . For the weighted average method, an extra parameter is used, the smoothing length of the weighting function, . Here we have used maxdist = 30, npix = 60, , and . The profiles only weakly depend on due to the simple filament shape and symmetry in the filament. A value of leads to over-smoothing at the filament’s peak.
Figure 18 shows that the difference between these two methods is slight. Figure 19 shows the radial profiles given by both methods. The two methods result in nearly identical radial profiles, with both methods recovering the Plummer profile used to construct the synthetic filament very well.
The stripes seen in both straightened filaments are artefacts which comes about when the tangent changes significantly. When the tangent changes significantly, the radial profile intersects different pixels leading to a lack of correlation between neighbouring radial profiles. This artefact is enhanced in the synthetic filament presented here as it is an arc of a circle, therefore the tangent is significantly changing from spine point to spine point.
A.2 A method for producing fast approximate Kernel Density Estimators
For large data-sets producing an exact KDE can be computationally expensive as each data point is convolved with the kernel. For a KDE constructed from data points, the evaluation of points scales as . When constructing the two-point correlation function described in section 4.4 the number of data points in the array is , where is the number of cores and is the number of realisations of randomly placed cores. As and , the number of data points is . Here we describe a tree-based method for producing fast approximate Kernel Density Estimators.
Tree structures are commonly used in modern hydrodynamic codes to efficiently solve for the gravitational force. This can be done because when the source is far away, its contribution to the total gravitational acceleration is small. The same is true of a KDE as the kernel (here a Gaussian) tends to zero far from the data point. Thus, data points far away from the evaluation point can be treated as a group instead of individually, this group being a node in the tree. The evaluation of such an approximate KDE scales as .
The tree structure used here is a binary tree. This means that the whole domain is considered as the root node in the tree which is then split into two child nodes. A node is split in this manner repeatedly until the resulting child nodes contain at most a certain number of data points, . Nodes which do not have children are called leaf nodes. The threshold used here is 8 data points, i.e. all leaf nodes have at most 8 data points in them.
Each node contains 4 pieces of information:
- •
the number of data points within the node,
- •
the ‘data-centre’ of the node,
- •
the node boundaries,
- •
and pointers to its two child nodes.
The ‘data-centre’ of the node is the mean location of all data points in the node.
To evaluate the KDE at a point, the tree is ‘walked’. Starting from the root node, it is determined if the contribution from the node can be approximated as a single data point located at the node’s centre and weighted with the number of data points the node contains. If the node contribution cannot be approximated it is said to be ‘opened’ and the contribution from its child nodes (or the data points themselves if the node is a leaf node) is considered. To determine if the node is to be opened, one of two things must be true: the evaluation point is inside the node’s boundaries, or the node is closer than some ‘opening’ distance. By setting this opening distance one can control the error in the approximation, the larger the opening distance the closer the calculation becomes to the exact calculation. Here we use an opening distance of the form , where is a numerical constant, is the bandwidth of the KDE, and is the number of data points in the node.
A.2.1 Controlling the error
By varying the numerical constant the error is controlled. Figure 20 shows the exact KDE, and 2 approximate KDEs where and . The data shown is the same two-point correlation function shown in the right panel of figure 6, only now showing the whole range of separations. The approximate KDEs are near indistinguishable from the exact KDE, the only small differences being at large separations.
Table 5 shows the median error and maximum error in percent for a number of values of . Table 5 also shows the time taken for the calculation and the speed-up factor with respect to the exact solution. The time shown is not the time taken to compute the two-point correlation as this involved 3 KDEs () and the computation of all the data points in these 3 arrays. Rather the time shown is the time taken to compute the KDE for the array. With , the approximate KDE can achieves a maximum error of less than 0.1 with a factor of speed up. Increasing the maximum number of data points allowed in a leaf cell, does not affect the accuracy of the approximate KDE but does increase the speed up factor slightly. As a default .
For fewer data points, , the speed up factor is larger for the same value of but the error also increases. The results for 2,250,000 and 225,000 data points are shown in table 5. A general rule is that to achieve less than a 0.1 maximum error .
The scaling with shown in table 5 appears to be despite the fact walking a tree goes as . This is because for small values of the construction of the tree dominates the time of the approximate KDE algorithm, , and this scales as . For larger , the approximate KDE algorithm does scale as as expected.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Akaike (1974) Akaike H., 1974, IEEE Transactions on Automatic Control, 19, 716
- 2Akaike (1978) Akaike H., 1978, Journal of the Royal Statistical Society. Series D (The Statistician), 27, 217
- 3André et al . (2010) André P. et al., 2010, A&A, 518, L 102
- 4Arzoumanian et al . (2011) Arzoumanian D. et al., 2011, A&A, 529, L 6
- 5Beuther et al . (2015) Beuther H., Ragan S. E., Johnston K., Henning T., Hacar A., Kainulainen J. T., 2015, A&A, 584, A 67
- 6Burkert & Hartmann (2004) Burkert A., Hartmann L., 2004, Ap J, 616, 288
- 7Burnham & Anderson (2002) Burnham K. P., Anderson D. R., 2002, Model Selection and Multimodel Inference. Springer-Verlag, New York
- 8Busquet et al . (2013) Busquet G. et al., 2013, Ap J, 764, L 26
