기본 정보
- 저자
- DOI
- 10.1016/j.matcom.2023.05.017
- 저널
- Mathematics and Computers in Simulation
- 발행년도
- 2023
- 발행기관
- Elsevier BV
- 피인용수
- 2
- 라이선스
- publisher-specific-oa
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.matcom.2023.05.017
- 토픽
- Tribology and Lubrication Engineering
- OpenAlex ID
- W3113035100
평가 내용
- 관련도
- 사업분야
- 모빌리티 소재 · (2) 샤무드(인공피혁)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '모빌리티 소재 > 샤무드(인공피혁)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
초록이 없습니다.
본문 52,894자
본문 펼치기
섹션 본문 116문단 · 49,651자
(제목 없음)
1Fitting B-splines to discrete data is especially challenging when the given data contain noise, jumps, or corners.Here, we describe how periodic data sets with these features can be efficiently and robustly approximated with B-splines by analyzing the Fourier spectrum of the data.Our method uses a collection of spectral filters to produce different indicator functions that guide effective knot placement.In particular, we describe how spectral filters can be used to compute highorder derivatives, smoothed versions of noisy data, and the locations of jump discontinuities.Our knot placement method can combine one or more of these indicators to place knots that align with the qualitative features of the data, leading to accurate B-spline approximations without needing many knots.The method we introduce is direct and does not require any intermediate B-spline fitting before choosing the final knot vector.Aside from a fast Fourier transform to transfer to and from Fourier space, the method runs in linear time with very little communication.The method is applied to several test cases in one and two dimensions, including data sets with jump discontinuities and noise.These tests show that the method can fit discontinuous data without spurious oscillations and remains accurate in the presence of noise.
21. Introduction.B-spline curves are a class of continuous functions used extensively in the approximation of discrete data sets, particularly in geometric modeling [19] and isogeometric analysis (IGA) [14].These functions possess several important properties making them useful for approximating geometric curves and surfaces, and leading to their use by cutting-edge engineering [27] and visualization [1] software.In recent years, B-splines (and their generalization, non-uniform rational basis splines, or NURBS) have been used to approximate and represent large-scale scientific data sets, which may not be easily recognized as surfaces, solids, or the like.A recent advance in this direction is the application of B-spline functional approximation to model data produced by scientific simulations in high-performance computing (HPC) settings [25].This approach has been extended to NURBS curves as well [23].
3The approximation of scientific data sets by splines requires consideration of several details sometimes de-emphasized in the computer-aided design (CAD) and visualization literature.For instance, spline representations of scientific data must be accurate enough for subsequent data analysis and postprocessing; this level of accuracy may be higher than what is required by geometric applications.Furthermore, data sets may be high-dimensional, contain complex combinations of smooth and non-smooth behavior, or be represented on scattered data.A common problem when modeling large, complex data sets is the lack of any prior knowledge regarding discon-tinuities, interfaces, or other qualitative features of the data.In order to efficiently approximate scientific data sets with exceedingly low error, B-spline approximation schemes must account for distinctive features within the data automatically.
4B-spline curves are piecewise-polynomial C k functions (for some prescribed k ≥ 0) by definition; as a result, the accuracy of a B-spline approximation depends on the location of its piecewise-polynomial breakpoints, or "knots."However, optimal knot placement is a challenging problem.The location of spline knots must be specified before the model fitting begins, but choosing the optimal set of locations amounts to a nonlinear minimization problem with many local extrema [15].In practice, two categories of numerical schemes have been employed to choose knot locations: iterative methods and direct methods.Broadly speaking, iterative methods repeatedly fit B-splines on different knot distributions until certain criteria are satsified.These methods can guarantee error bounds, but do not have a bounded time complexity.For instance, an iterative scheme based on interval bisection was proposed by Liang et al. [18].Another approach was taken by Galvez et al. [12], where genetic algorithms were applied to choose optimal knots locations.On the other hand, direct (or "oneshot") methods employ heuristics to choose knot locations and typically run faster than iterative schemes.Direct methods can be used to choose knots in a standalone manner, or to produce an initial guess for knot locations that serves as input to an iterative scheme.
5In this paper, we propose a direct knot placement scheme that uses the Fourier spectrum of the input data to make intelligent knot placement choices.From the Fourier coefficients, we can accurately compute high-order derivatives, the locations of jump discontinuities, and (when the input is corrupted by noise) a smoothed version of the input data.Depending on the application, one or more of these indicators can be used to choose a knot vector for the B-spline approximation.For example, given a data set which is known to be smooth, high-order derivatives can be used to carry out the method of Yeh et al. [30].Furthermore, using Fourier coefficients to compute the locations of discontinuities allows us to handle data that is only piecewise-smooth, which was not straightforward in the original formulation by Yeh et al.Crucially, the locations where the data breaks into smooth pieces need not be known ahead of time.Additionally, when a data set is corrupted by noise, a smoothed proxy for the input can be inferred directly from the Fourier spectrum and need not be computed explicitly.Then, a knot vector for the noisy data can be chosen based on the derivatives of the smooth proxy.Since certain operations (such as convolution, shifting, etc.) are notably simplified in Fourier space in contrast with their real space counterparts, complex preprocessing steps become natural in Fourier space.The overall time complexity for this method is O(N log N ); however, the entirety of the method apart from a fixed number of fast Fourier transforms runs in linear time.
6A number of other notable heuristics have been developed to guide direct knot placement methods.Li et al. [17] used discrete curvature and angular deflection as a way to choose knot locations.In their approach, the authors computed an integrated discrete curvature function and placed knots such that each sequential pair of knots covered equal areas of discrete curvature.They also applied a smoothing procedure to compute the curvature of noisy data.This approach was recently extended from curvature to high-order derivatives by Yeh et al. [30], whereby the q th derivative is integrated and used to place knots (q being the order of the approximating spline).They showed that derivatives higher than second order (i.e., curvature) provide a robust heuristic when higher-order splines are considered.However, techniques for handling noisy data were not discussed.Michel and Zidna [22] also recently considered the use of high-order derivatives to choose knot locations.Their method blends multiple heuristics including curvature, angular deflection, and derivatives into one composite function.The full algorithm considers 231 combinations of the various heuristics and generates a knot distribution for each combination.After fitting a B-spline with each knot distribution, the algorithm returns the approximation with minimal L 2 error.
7The recent works of Yeh et al. [30] and Michel and Zidna [22] illustrate the power of using high-order derivatives as a knot placement heuristic.The method of Michel and Zidna is robust, fitting data with jumps and corners.However, this procedure is relatively slow compared with that of Yeh et al., which performs efficiently on data sets larger than those considered by Michel and Zidna.In the context of modeling data for scientific applications, an ideal scheme would be robust enough to account for features that typically arise in scientific data sets (like noise, corners, and jumps) while still running efficiently enough to execute within high-performance computing workflows.
8Throughout this paper, we also make a point to emphasize how a Fourier-informed approach to B-spline fitting allows multiple indicators to be used in tandem to produce better approximations.For instance, combining the techniques presented here, we can intelligently choose a knot vector to fit a data set with jumps and spikes that is also corrupted by noise.At the mathematical level, each operation that we present can be realized as a filter applied to the Fourier spectrum of the input.As a result, the computation of various indicators follow the same pattern: first, compute the Fourier transform of the input; second, apply some filter to the Fourier coefficients (via a pointwise vector product); third, take the inverse Fourier transform of the filtered spectrum.Computing derivatives, jump locations, and smooth proxies all follow this workflow; obtaining the desired indicator simply amounts to choosing the right filter.
9The remainder of the paper is structured as follows.In section 2, we present basic mathematical methods and definitions that will be used in the remainder of the paper.This includes an error analysis of derivative-informed knot placement not presented before.Section 3 describes the specifics of the proposed method in detail.Within section 3, each subsection defines a different filtering scheme and the scenarios in which it may be applied.In section 4, we present the results of numerical experiments that validate the behavior of the methods presented in section 3 and compare with an existing method.Extensions to our method are discussed in section 5, and conclusions are presented in section 6.
Mathematical Preliminaries.
10At the core of every B-spline approximation is a knot vector defining how the piecewise-polynomial function transitions from one piece to the next.Splines constructed from a knot vector incorporating the qualitative features of the data are generally more accurate than those based on uniform knot vectors.As such, it is important to understand how spline approximation accuracy depends on the knot vector and how this dependence may be exploited to construct near-optimal knot vectors.
11To begin, we set out some basic definitions of B-splines and knots in subsection 2.1.In subsection 2.2, theoretical results on the approximatin power of splines are applied to provide a new justification for the method of Yeh et al. [30] that was not included in their paper.Fundamental definitions and operations from Fourier theory are then described in subsection 2.3.
122.1.B-spline Representation.We introduce basic definitions and properties for the one-dimensional case, but higher-dimensional extensions follow using tensor product splines.As a result, each of the fundemental definitions in higher dimen-sions can be described in terms of their one-dimensional analogues.A more in-depth exposition of tensor product splines may be found in the work of Habermann and Kindermann [13].
13A one-dimensional B-spline curve in R d with n control points is a parameterized curve (2.1)
14where each N j,p is a piecewise-polynomial function of degree p and each P j ∈ R d is a "control point" in d-dimensional space.We say that C is a B-spline curve of "degree p" or (equivalently) "order p + 1."The order of a B-spline is defined to be q = p + 1, and this parameter is frequently used in the numerical analysis of splines.The functions N j,p are the B-spline basis functions and are defined on the parameter space [0, 1] ⊂ R.This parameter space is divided into subdomains by a nondecreasing sequence of knots k 0 , k 1 , . . ., k n+p ∈ [0, 1]; the precise location of each k j is left unspecified for the moment-choosing the location of each k j is the subject of this paper.We emphasize that when the number of control points, n, is specified, the number of knots is always n + p + 1 by definition.Given a knot vector k = {k j } and a polynomial degree p, the B-spline basis functions are defined by the recurrence:
15(2.2)
16which was introduced by Cox [6] and de Boor [7].The B-spline fitting problem seeks to represent a discrete data set with a function of the form in (2.1).Given a set of discrete data {Q 0 , . . ., Q m−1 } ⊂ R d representing a one-dimensional curve, we are interested in minimizing the quantities |C(u i ) − Q i |, 0 ≤ i ≤ m − 1, where each u i ∈ [0, 1] is some real parameter chosen to correspond to the point Q i .The construction of a spline approximant begins by choosing the knot vector k = {k j } and the polynomial order q.Then, the locations of the control points
17computed.This computation is straightforward, requiring the solution of a linear least squares system of size m × n, where m is the number of input points and n the number of control points.
18In this paper, we consider scalar-valued input data sampled on a regular grid in one or two dimensions.Given m uniform samples on an interval [a, b], we denote the sampled function by f and the i th sampled value by f i .The parameters associated to each input point are likewise assumed to be uniformly distributed; hence, u i = i/(m − 1) for 0 ≤ i ≤ m − 1.Similar conventions are made for scalar data sets sampled on a regular two-dimensional grid; the only changes are in notation.For 2D data sampled on the rectangle [a 1 , b 1 ] × [a 2 , b 2 ], we denote by m 1 and m 2 the number of inputs in each dimension; the total input size is therefore m 1 m 2 .Input values f i1,i2 denote samples of a function f from the i th 1 row and i th 2 column.As in the case of 1D data, we assume uniformly distributed parameters u 1 , u 2 in each dimension.
19Our primary error metrics considered when assessing the accuracy of a B-spline approximation are the root mean-squared (RMS) and maximum error:
20In higher dimensions, we apply analogous RMS and maximum error norms where the indexing for the sum or max operator is expressed over all dimensions.
212.2.Error Analysis of Derivative-Informed Knot Placement.A direct method using high-order derivatives to guide the placement of knots was recently introduced by Yeh et al. [30].The same reference shows that this method compares favorably against a number of popular knot placement methods and is computationally efficient.We summarize the basic structure of this method here and introduce a new justification for the accuracy of the method as well.
22Let f (q) (x) be the q th derivative of f .We define the "feature function" of f to be the function on the parameter space [0, 1] given by (2.4)
23The feature curve F (u) is a measure of the q th derivative of f at a point corresponding to the parameter u.This may be considered a high-order analogue to curvature, which is based on the second derivative of a signal.The method is designed to subdivide the parameter space with knots such that each knot span contains roughly the same amount of integrated feature.To do this, we compute a normalized cumulative distribution function (CDF) of F (u) and choose interior knots {k j } n−1 j=q such that every knot span is mapped to an interval of equal size.
24To be precise, for u ∈ [0, 1] let
25be the CDF of the feature curve.We will refer to G(u) as the "Feature CDF."The full knot vector k = {k j } n+q−1 j=0 is defined by
26Under this definition, the CDF function G satisfies the property
27Furthermore, k is constructed with q repeated knots at each endpoint, a convention in B-spline approximation that specifies the behavior of a spline at its endpoints.Finally, we remark that while G is assumed here to be invertible, this is not a requirement in practice. 1 Yeh et al. [30] introduced this knot placement scheme based on empirical considerations.One strength that was observed is that the method generates a spline with roughly equal approximation error throughout the domain, no matter the distance between two adjacent knots.For example, consider the signal shown in Figure 2.1.Here, uniform knot placement is compared with knots chosen according to (2.6) (which we call "derivative-informed" knot placement).In the residual plot on the right, we observe that uniform knot placement is much less accurate near the center of the domain, but more accurate at the extremes of the domain.In contrast, the derivative-informed knots produce an approximation with roughly equal accuracy throughout the domain, even though the knot spans vary in size.In effect, derivative-informed knot placement "distributes" error equally throughout the domain.In the remainder of this subsection, we provide a theoretical explanation for this behavior.For every pair of consecutive knots k j , k j+1 and q−1 ≤ j ≤ n−1, we define the j th knot span I j = [k j , k j+1 ].The size of this span is denoted h j = k j+1 − k j .For every knot, we are also interested in the largest knot span within a small neighborhood of the knot.To describe the neighborhood of interest, we set I j = [k j−q+1 , k j+q ] and h j = max(h j−q+1 , . . ., h j+q−1 ).
28The central fact to be established is the following.
29Claim 2.1.Let f be a function with q + 1 continuous derivatives and k = {k j } the knot vector defined according to (2.6).If the knot span widths {h j } are locally quasi-uniform and C is the B-spline of order q with knots k that best approximates f , then
30In this case, G would not be invertible and the knot construction procedure would be ambiguous.In practice, we consider a perturbed CDF, G (u) = G(u) + u, where is small; this perturbed CDF is always monotonically increasing.The choice of is arbitrary and we use = (1000m) −1 in our implementation.For the sake of clarity, in the remainder of this paper we shall assume that G(u) is strictly increasing, understanding that it can always be perturbed to be so.
31for all q − 1 ≤ j ≤ n − 1 and some constant A > 0.
32When k is chosen according to (2.6), we have shown that G
33Next, it is useful to recast the right-hand side of (2.9) in terms of the derivative of f .By the definition of the feature function F , (2.10)
34, and consequently
35Next, we apply a fundamental property of spline approximation.
36Lemma 2.2.Let f be a function with q continuous derivatives, k a knot vector, and C the best-fit B-spline of order q.Then for each knot span I j , C satisfies
37for some constant A 1 > 0.
38Proof.See [28,Thm. 6.24].
39To apply this lemma, two assumptions are needed.If we assume that f has at least q + 1 continuous derivatives, then there is another constant
40While this is a strong assumption, our intent at present is only to study the approximation in regions where f is smooth.Treating regions where f is not smooth is the motivation behind the methods in subsection 3.2 and subsection 3.3.Additionally, if we assume that the knot span widths {h j } are locally quasi-uniform, then there is yet another constant
41With these two assumptions, and setting A = A 1 A 2 A 3 > 0, we deduce from (2.12) that (2.13)
42This establishes a bound for the maximum error on each knot span that, crucially, does not depend on the width of the span.Thus, as the number of control points n increases, the error within each knot span is decreased simultaneously.
Spectral Representation of Signals.
43Let F denote the Fourier transform operator and F −1 the inverse Fourier transform.Given a continuous function f (x), we denote the Fourier transform of f as f (ξ) := F(f )(ξ).We say that f is a function in physical space while f is a function in Fourier space or spectral space.
44Owing to the convolution theorem, which states that convolutions in real space become products in Fourier space, we can regard any function K(ξ) in frequency space as a filter.Taking the inverse Fourier transform after filtering f can produce useful information about f .For instance, when K(ξ) = iξ, the Fourier duality between multiplication and differentiation tells us that F −1 (K(ξ) f (ξ)) = f (x).Other filters may be applied using this same technique to produce smoothed versions of f (c.f.subsection 3.2) or indicator functions locating jump discontinuities in f (c.f.subsection 3.3).Specifically, given a function f (x) and spectral filter K(ξ), we are interested in the filtered function
45Different properties of f can be deduced by analyzing the result of applying different spectral filters, which is a cornerstone of modern signal processing.The fast Fourier transform (FFT) decomposes a discrete signal into a combination of frequency components.Given a discrete signal {f k } N −1 0 , the FFT computes a set of Fourier coefficients {F n } N −1 0 .The FFT and its inverse (IFFT) are defined by (2.15)
46Spectral filtering techniques can be applied to discrete data in an analogous way.Given a discrete filter K(ξ n ), an input signal {f k } N −1 0 , and its discrete Fourier coefficients {F n } N −1 0 , we compute the filtered signal according to the equation (2.16)
47where denotes pointwise multiplication (Hadamard product) and {ξ n } N −1 0 is the vector of frequencies corresponding to each Fourier coefficient.
48It may be noted that filters can be applied in physical space with a convolution instead of the method above.While these two characterizations are equivalent, computational concerns lead us to compute in spectral space.When IFFT(K) has global support (which is the case for some filters considered herein), the computational complexity of the convolution needed to filter in physical space is quadratic.It will also be necessary to apply multiple filters to the same function, which further amplifies this difference in complexity.In this case, only one FFT/IFFT pair is required, no matter how many filters are chained together.
493. Fourier-Informed Methods for Knot Placement.Since a B-spline is a highly smooth curve, approximating non-smooth data poses a challenge unless certain steps are taken.For example, B-spline approximations of data with jump discontinuities often produce splines with overshoots and undershoots near the jump in a manner similar to the Gibbs phenomenon [26].However, this can be addressed by colocating several knots near the jump, or (if the precise location of the jump is known) adding a knot of high multiplicity at the jump location.In a similar way, data sets with sharp peaks or corners are typically smoothed out by B-spline approximations, unless several knots are placed in a neighborhood around the peak.
50Our method incorporates three indicators to inform the placement of knots.These indicators are:
511. High-order derivatives of the input 2. Locations of jump discontinuities in the data and its first derivative 3. A smooth proxy function Each indicator affects the knot vector in a different way and all are computed directly from the Fourier transform of the input data.
523.1.Knot Placement with High-Order Derivatives.If f (x) is a function with q continuous derivatives, then the q th derivative f (q) (x) satisfies the identity
53In order to compute derivatives of a discrete function f k , we define the spectral filters
54for any non-negative integer q.When f k is sampled from a smoothly periodic function, the filtered signal
55will be an accurate approximation of f (q) at the k th grid point.
56The accuracy of high-order derivatives computed with (3.3) is observed to be several orders of magnitude higher than standard differentiation techniques when the data is smooth and periodic.For comparison, we considered two other common approaches to numerical differentiation: finite differences and estimation from a moving least-squares approximation [16].Figure 3.1 compares these three methods for a signal with 500 points.The finite difference scheme used was a first-order central difference.
57To estimate the derivative of order q at a given point with a moving least-squares approximation, a polynomial of degree q was fit to a patch of k points around the given point.The derivative approximation is the q th derivative of the best-fit polynomial at the point.In our implementation, we set k = max(q + 1, 2q − 1).
58From Figure 3.1 it is apparent that derivative computation by spectral filtering produces a highly accurate approximation.However, we remark that this approximation suffers for nonsmooth and/or nonperiodic data.Certain kinds of nonsmooth signals can be handled with the smoothing filter described in the following subsection, but nonperiodic signals are in general not suited to approximation by this method.There are techniques that may extend this approach to nonperiodic signals (c.f Future Work, section 5); at present, however, we consider only periodic data in our analysis.
59The representation in (3.3) also indicates that once Fourier coefficients are computed for the first time, the computation of derivatives incurs only costs associated with a Hadamard product.The computational complexity of the FFT is the wellknown O(N log N ).From the perspective of building a B-spline data model, this is a fixed cost resolved by dedicated software for efficient FFT implementations.Furthermore, the pointwise multiplications in Fourier space are embarrassingly parallel, regardless of the physical dimension or derivative order.The computational complexity of derivatives in Fourier space is O(N ) and no communication is needed.This can be significantly faster than even vector inner products, which require a reduction
Derivative Error
60Fourier FinDiff MVLSQ Fig. 3.1.Left: A sample smooth periodic function.Right: Accuracy of numerical differentiation for the first six derivatives, using three methods."Fourier" is the method described by (3.3), "FinDiff " is a central differencing scheme, and "MVLSQ" is an estimate based on a moving least-squares approximation.
61that can bottleneck the computation on a parallel distributed data set.This aspect marks the superiority of approaching numerical differentiation in Fourier space, as opposed to real space, where the width of the stencil dictates the number of floating point operations, memory accesses, and potentially communication costs (in the case of parallel distributed data).
62For smooth signals and numerical derivatives computed by (3.3), knot placement can be carried out via the method described in subsection 2.2.By computing derivatives in spectral space, the feature function will be constructed from highly-accurate derivatives in an efficient and scalable way.
Knot Vectors for Noisy Data.
63While the use of derivatives as a knot placement heuristic has numerous advantages, one of its biggest disadvantages is sensitivity to noise.Whether computed by finite differences or Fourier transforms, highorder numerical derivatives of functions perturbed by noise can be highly inaccurate.One way to limit this numerical instability is to approximate noisy input data with a smooth proxy function.Conti et al. [5] took this approach in their method of using third derivatives to fit cubic splines.However, their construction relied heavily on a smoothing parameter that needs to be chosen to match the strength of the noise.
64The problem of smoothing a noisy signal is fundamental to the field of signal processing.One of the most common methods of smoothing a discrete signal is to convolve the signal with a smoothing kernel.By the convolution theorem, an equivalent operation can be carried out in Fourier space.When derivatives are computed using the method of subsection 3.1, the Fourier coefficients need not be recomputed, saving one O(N log N ) operation.
65There are numerous ways to filter a noisy signal and undertaking a thorough comparison of these methods is beyond the scope of this paper.Instead, we illustrate the concept using a simple low-pass Gaussian filter and show that we achieve good results with this straightforward approach.Suppose a given data set is uniformly sampled with grid size h, and a Gaussian blur is applied via the kernel
66which is the standardized mean-zero Gaussian with standard deviation σ.If the standard deviation is taken to be one-half the grid spacing, σ = h/2.Then (3.5)
67and the smoothed proxy is computed via the discrete convolution of L with the data.The corresponding smoothing filter in Fourier space is given by the Fourier transform of L(x).Thus, the formula for this filter is
68In effect, filtering the Fourier spectrum with K s reduces the strength of high-frequency components within a noisy signal.This produces behavior similar to applying a lowpass filter.Figure 3.2 illustrates the effect of K s on a noisy data set and its Fourier spectrum.
Fourier Spectra
69Original Spectrum Filtered Spectrum Fig. 3.2.Left: A noisy signal f (x).Center: Smooth proxy function fs(x) produced by spectral filtering.Right: Original Fourier spectrum (blue) and filtered spectrum (orange); note the filtered spectrum decays while the original does not.
70In practice, the smooth proxy function (at right in the figure) is never computed explicitly; it is included for illustrative purposes only.By smoothing and computing derivatives in Fourier space, we can approximate the derivatives of the proxy without ever computing the smooth proxy in physical space.Computing the derivatives of the proxy function is carried out via (3.7)
71Thus, the entire process of smoothing a noisy signal for the purposes of derivative computation amounts to applying a second filter to the existing workflow of subsection 3.1.As discussed above, this is an embarrasingly parallel O(N ) operation.In addition, the smoothing operation requires no parameter tuning, which allows for noisy data to be handled in an automatic way.
Knot Vectors for Discontinuous Data.
72In the presence of discontinuities, B-spline approximations with equispaced knots will exhibit undesirable overshoots and undershoots.Our present focus is the treatment of functions with jump discontinuities in the value and/or in the derivative.To distinguish these two cases, we will refer to jumps in the function value as "C 0 jumps" and jumps in the derivative of the function as "C 1 jumps."In general, spurious oscillations can be reduced by clustering several knots near a discontinuity; see Figure 3.3.Therefore, it is highly desirable to identify any discontinuities in the data and treat them accordingly during the construction of the knot vector.
73In this subsection we apply a spectral filter that identifies C 0 and C 1 jumps directly from a signal's Fourier coefficients.Filters of this type were introduced by Tadmor, Gelb, Cates, and others [4,9,10,8] in the context of edge detection.For an overview of this subject we refer the reader to the expository work of Tadmor [29]; for a more detailed treatment of jump detection in the first derivative, see Cates and Gelb [8].We utilize the exponential concentration factor of Gelb and Tadmor [10],
74where α is a parameter and c α is a normalization constant dependent on α.Following the implementation of Gelb and Tadmor [10], we set α = 6; the corresponding normalization is c 6 ≈ 0.34.The spectral filter associated to this concentration kernel, which we will use to locate C 0 and C 1 jumps, is
75where m is the length of the input signal.By filtering the Fourier coefficients with K j and then inverting the FFT, we produce a detector that isolates C 0 and C 1 jumps within the input signal: (3.10)
76if there is a C 0 jump at
77Here 0 < γ ≤ 1 is a parameter describing the exponential decay rate away from jumps.The precise magnitude of J(x) depends on the size of the jump as well as its type (C 0 or C 1 ).In particular, if f (x) has a C 0 jump of size l at x = c, then J(c) = O(l).If f (x) has a C 1 jump of size l, then J(c) = O(l/m).Therefore, the location of jump discontinuities can be determined automatically by identifying the local extrema of J(x) above a user-specified threshold.By setting the value of l, the user has control over what they consider to be significant.It is also worth noting that the parameter l does not enter into the definition of the filter at all (c.f.(3.8)-(3.9)); it is only used when searching for jumps by interpreting the content of J(x).
78Figure 3.4 illustrates how this jump detector works in practice.Given an input that is smoothly periodic except for two C 0 jumps, the function J(x) produces two spikes at those discontinuities.In addition, the height of these spikes is directly related to the size of their corresponding jumps.It is the correspondence between jump height in f (x) and spike height in J(x) that allows one to scan only for discontinuities of a certain size.
79In order to identify C 1 jumps in a signal, we adopt the two-pass approach of Cates and Gelb [4].After C 0 jumps are identified, the entire jump indicator function may be scaled by a factor of m and searched again for spikes where are O(1).By (3.10), this ensures that C 1 jumps will have the correct magnitude.The only extra step involved is to differentiate C 1 jumps from C 0 jumps.By scaling J(x) by a factor of m, any spikes corresponding to C 0 jumps will also be picked up by the second pass searching for C 1 jumps.To determine the true type of a jump, we simply ignore any candidates for a C 1 jump that are detected in a neighborhood around a previously detected C 0 jump.
80Once jumps are located within the input, knots can then be placed to account for the nonsmooth behavior.A discontinuous B-spline may be constructed by inserting a knot of multiplicity q precisely at the detected jump.Under this construction, the resulting spline will exhibit no oscillations.In effect, the process that fits control points to the left and right of the discontinuity is decoupled; that is, the behavior of the signal on one side of the high-multiplicity knot does not affect the fit on the other side.Therefore, in our method we place a knot of multiplicity q at the peak of every spike in J(x) marking a C 0 jump.In order to handle C 1 jumps, we place a knot of multiplicity q − 1 at the peak of each spike marking a C 1 jump.
81After placing knots at each jump discontinuity, knots are placed throughout the smooth regions using the method in subsection 3.1.Since the data are nonsmooth (at each jump), it is necessary to construct a smooth proxy function for the input and compute the derivatives of the proxy.This step can be done immediately using the filter described in subsection 3.2.We emphasize that adding this smoothing step requires essentially no extra work, since the Fourier coefficients were computed during the jump detection step.Smoothing the data simply requires two filters of the Fourier coefficients instead of one.
823.4.Higher-dimensional data.The methods described in the three previous subsections are all computed with a combination of FFTs and pointwise vector products.As a result, extensions to two dimensions and higher are straightforward and efficient.For simplicity, we will describe the two-dimensional case in detail.However, applications to higher dimensions follow the same structure as the two-dimensional case.
83On an equispaced tensor product grid in two dimensions, the Fourier spectrum of a function f : R 2 → R may be computed with the 2D FFT.In this case, the Fourier coefficients fij lie on a 2D grid.Due to this tensor product structure, two-dimensional spectral filters can be applied in a separable fashion, one dimension at a time.To do this, one-dimensional slices of the 2D spectrum are selected and filtered with a 1D filter in each spatial direction independently.See Figure 3.5 for an illustration of a two-dimensional Fourier spectrum and one-dimensional slices taken in each direction.Filters for Differentiation.When modeling a two-dimensional surface with Bsplines, it is necessary to consider partial derivatives in each dimension.To differentiate with respect to the first variable, we repeatedly apply the filter in (3.2) to strands of coefficients with a fixed second index: { fi,j } m1−1 i=0 .Once the filter operation has been applied for all 0 ≤ j ≤ m 2 −1, the partial derivatives are computed by taking the 2D IFFT of the filtered Fourier coefficients.This produces an approximation to ∂ q f ∂x q 1 at each grid point in the domain.Computing the second set of partial derivatives is done in the same way, except the filter operation is now applied to strands { fi,j } m2−1 j=1 where the first index is fixed.
84Once both sets of partial derivatives have been computed, we construct two feature CDFs to guide the placement of knots-one for each dimension.As above, the process for each dimension is the same, up to a change in indexing.Therefore, we will only describe the process of creating a feature CDF for the first dimension.The feature function with respect to the first dimension is analogous to the one-dimensional case, with the first partial derivatives used in lieu of the full derivative.That is,
85.
86Next, this two-dimensional feature function is collapsed along the second dimension to produce a new feature indicator that is a function of u 1 only.We set (3.12)
87Thus F * 1 will be large whenever F 1 (u 1 , u 2 ) is large for some value of u 2 , indicating a greater need for knots near u 1 .
88The feature CDF with respect to the first dimension is now simply the CDF of F * 1 :
89The knots in the first dimension are then chosen with G 1 according to the method described in subsection 2.2.Then same procedure can be repeated to choose knots in the second dimension as well.
90Filters for Smoothing.The smoothing filter in two dimensions is defined by a Gaussian in a manner similar to the one-dimensional case.In one dimension, the only problem dependent parameter in the smoothing filter was the mesh size h.On a two-dimensional equispaced grid, there are mesh sizes h 1 and h 2 describing the grid width for the first and second dimensions.The smoothing kernel takes on a form similar to (3.6), namely,
912 ) .
92To compute the smoothed version of a noisy 2D data set, it suffices to pointwise multiply K s with the Fourier coefficients and then take the 2D IFFT.
93Filters for Jump Detection.Like the filters for differentiation, applying filters to detect jumps in two-dimensional data involves a sense of directionality.At any point (u 1 , u 2 ) in parameter space, the signal may experience a jump in either cardinal direction.In fact, the signal may jump in a direction not aligned with either cardinal direction.Due to the tensor product structure of the grid points (and Fourier coefficients), however, we are constrained to only check for jumps along the cardinal directions.To create a jump detector with respect to the first dimension, the one-dimensional filter is multiplied with each strand { fij } m1−1 i=0 like in the case of the differentiation filters.Applying the 2D IFFT to these filtered coefficients produces a two-dimensional jump detector function where only jumps with respect to the first coordinate are considered.The same process with coordinate indexing switched produces an equivalent detector for jumps along the second dimension.
944. Numerical studies.To test these techniques, we compared our approach with the method of Yeh et al. [30].We refer to this procedure as "derivative-informed (DI) knot placement."In its original presentation, the DI method was shown to have comparable or superior accuracy to a number of other knot placement schemes, both iterative and direct [30].Here we intend to show that our method is consistent with the DI method for smoothly periodic signals.We then exhibit a number of cases that the DI method is not designed to handle and show that our method performs as expected.For reference, we also compare the accuracy of our method with uniform knot placement.These results are marked "uniform" in the following plots.For each test, we report the RMS and maximum error of the resulting spline.The behavior of the maximum error is especially important when considering nonsmooth data, since spurious overshoots and undershoots increase maximum error dramatically but may be unnoticed when reporting RMS error alone.
95Several combinations of the techniques presented in section 3 were tested.We have abbreviated these combinations as follows:
96Derivative-Informed, Fourier (DI-F).Knot locations are determined by the DI method, but high-order derivatives are computed from the Fourier spectrum as described in subsection 3.1.
97Derivative-Informed, Fourier+Smooth (DI-FS).Knots are placed using the derivatives of a smooth proxy function; these derivatives are computed using the procedure in subsection 3.2.
98Derivative-Informed, Fourier+Jumps (DI-FJ).Jump discontinuities in the data and its derivative are identified as in subsection 3.3 and highmultiplicity knots are placed accordingly.Then, the remainder of the knots are placed according to the DI-FS method.All methods were implemented in MATLAB, using built-in routines for the FFTs and evaluation of B-spline basis functions.Control points for the B-spline were determined via least squares minimization; in cases where the Schoenberg-Whitney condition is not satisfied (that is, when the least squares system is underdetermined), we selected the minimum norm solution.Least squares minimization was carried out with the complete orthogonal decomposition built-in to MATLAB.
994.1.Noisy Data.With the application of smoothing filters, our method can automatically handle data corrupted by noise.In general, the computation of numerical derivatives with finite differences is extremely unstable when applied to noisy data.For this reason, data sets with noise were not considered as a feasible use case in the original presentation of the DI method.However, for the sake of comparison, we considered the performance of the DI method and uniform knot placement when assessing the accuracy of our method with noisy data.
100To study the effect of noise on the method, we perturbed a smooth function with various amounts of noise.B-spline accuracy was studied as a function of total knots, for tests with different noise levels.In each case, Gaussian white noise with standard deviation equal to one was scaled by a constant factor.These factors were 0.0001, 0.001, 0.01, and 0.1.The results of these tests are summarized in Figure 4.1.For each noise level, we see that the DI-FS method outperforms both the DI and uniform knot placement methods by an order of magnitude for small knot numbers.Given enough knots, all methods approach the same accuracy, which is the noise level for that particular test.With the application of smoothing filters, the DI-FS method is effectively placing knots according to the large scale features of the data set, which is the most effective way to increase accuracy with a small number of knots.As a result, the DI-FS method produces B-spline approximations accurate up to the level of noise with approximately half the knots needed by the other methods.
4.2.
101Piecewise-Smooth Data.As we discussed in subsection 3.3, attempting to fit a highly smooth spline to nonsmooth data is bound to produce an oscillatory approximation unless jumps in the data are treated carefully.To study the importance of jump detection for B-spline fitting, we tested the DI-FJ method on signals with a combination of C 0 and C 1 jumps and compared its performance with the DI method and uniform knot placement.This comparison contrasts the accuracy of using precisely-located high-multiplicity knots (our method) to the accuracy of using closely-packed simple knots (the DI method).In Figure 4.2, we considered a signal with 600 input points containing one C 1 jump one-third of the way through the domain and one C 0 jump two-thirds of the way through the domain.For the purposes of the knot counts in Figure 4.2, we consider one knot of multiplicity q to be the same as q simple knots.Using the two-pass strategy for detecting jumps, the DI-FJ pinpointed both jumps and placed high-multiplicity knots accordingly.Overall, we observe the DI-FJ method is more accurate than the DI method by an order of magnitude or more when the total number of knots is low.As we would expect from a method which corrects spurious oscillations, the increase in accuracy is especially significant in the maximum error norm.By targeting C 0 and C 1 jumps in the data, the DI-FJ method avoids the largest sources of error with a small amount of knots.
Two-Dimensional Data.
102To validate the method in two dimensions, we tested our procedure on two data sets.
103• SPH Analytical: An analytical, smooth signal generated from a combina-
1043 ), which is doubly periodic.• Global Topography: A spherical harmonic sampled expansion of composite satellite observation that integrates land topography and ocean bathymetry data over the entire Earth's surface, as provided by ETOPO1 Global Relief Model [24] 4.3.1.Smooth Data.When considering the first data set, we expect uniform knots will achieve near-optimal accuracy due to the highly smooth nature of the data.This is confirmed by our test: when placing knots according to the DI-F method, the resulting knot vector is close to uniform and the spline approximation error is almost identical to the splines constructed from uniform knots.approximation error with derivative-informed and uniform knots when the approximating spline is fourth order (i.e., cubic).
Input Signal
105x y f(x,y) 4.3.2.Non-smooth Data.In the second test, the performance of the method was measured for the real-world field data set that represents the Earth's global topography.This data set was sampled on a uniform grid with a resolution of 720×360, and retains periodicity only in the first dimension (X) and not in the second (Y).As a consequence, we computed the derivatives in the x-direction from the Fourier spectrum, while derivatives in the y-direction were computed using finite differences.Knot locations were then chosen in the manner described by subsection 3.4.
106The results of this test are summarized in Figure 4.4.Here, we compare the error produced by a spline with uniformly spaced knots with the error produced by a spline with knots chosen by the DI-F method.The DI-F method outperforms uniform knot placement by approximately one order of magnitude for moderate knot counts.5. Future Work.Having set the theoretical groundwork for a Fourier-informed approach to B-spline fitting, it is essential to note that the B-spline data models presented here need not be restricted to periodic signals.If the data are already represented on an equidistant grid but are not, then strategies for periodic continuation [2,20] should be considered.If the data are scattered, a naive approach would be to interpolate on an equidistant grid, which may add computational overhead to the FFT; however, the non-uniform FFT (NUFFT) [11] is recommended to preserve the efficiency of the FFT.If the data set is prohibitively large, it is is preferable to consider block transforms into spectral space, which can be achieved through the discrete Chebyshev transform (DCT) [3] or the discrete Legendre transform (DLT) [21].Once these extensions are studied, the methods described in this paper can be extended to more complex cases, e.g.large-scale scattered and nonperiodic data.
1076. Conclusions.We described a fast and scalable method to choose knot locations for B-spline approximations of periodic signals based on Fourier coefficients and spectral filters.Our method accounts for noise, jump discontinuities, and high-order derivatives of the signal when choosing knot locations.As a result, the method can place high-multiplicity knots where a signal contains jumps in its value or its derivative, eliminating Gibbs-like overshoots and undershoots near the jump.The method can also compute approximate derivatives in the presence of noise.As a result, our knot placement algorithm efficiently uses the knots available to it and is more accurate than a competing method when B-splines are constructed from a small number of knots.
108In addition to performing well in several challenging settings, our knot placement scheme is designed to be fast and flexible.All computations necessary to place knots are carried out in Fourier space by filtering the Fourier spectrum of the input in various ways.This allows different filters to be combined easily and makes the method extensible to additional filters in the future.Furthermore, the computational complexity of applying these filtering operations is O(N log N ) and highly scalable, making the implementation suitable to tackle large data sets often encountered in scientific applications.
Fig. 2 . 1 .
109Fig. 2.1.The effect of knot placement on the distribution of error in a spline approximation.Uniform knot placement (top left) and derivative-informed knot placement (bottom left) are applied to data with a steep peak.The residuals for each approximation are compared at right.
Fig. 3 . 3 .
110Fig. 3.3.Effect of uniform knot placement (left) and jump-aware knot placement (right) on a cubic spline approximation of data with C 0 jumps.Filled-in triangles denote high-multiplicity knots.
Fig. 3 . 4 .
111Fig. 3.4.Left: Piecewise smooth periodic function with one C 1 jump at x = 0.5 and one C 0 jump at x = 0.75.Right: Output of the jump detector J(x) for the input signal.Note that the size of the jumps in the input corresponds to the height of the spikes in the indicator.
Fig. 3 . 5 .
112Fig. 3.5.Fourier spectrum of a two-dimensional function.At left: Full spectrum over frequency grid.At right: One dimensional slices of the Fourier modes taken in different dimensions.
Fig. 4 . 1 .
113Fig. 4.1.At left: Smooth data perturbed by increasing amounts of Gaussian white noise.Noise levels (from top to bottom) are: 10 −4 , 10 −3 , 10 −2 , 10 −1 .At right: Convergence of spline error as a function of total knots for each data set.
Figure 4 .Fig. 4 . 2 .
114Fig. 4.2.Comparison of the DI-FJ method to the DI method and uniform knot placement.
Fig. 4 . 3 .
115Fig. 4.3.Comparison of spline approximation error as a function of knots for the SPH Analytical data set.Throughout the study, the ratio of knots in the first dimension to knots in the second dimension was kept constant.
Fig. 4 . 4 .
116Fig. 4.4.Comparison of spline approximation error as a function of knots for the Global Topography data set.Throughout the study, the ratio of knots in the first dimension to knots in the second dimension was kept constant.
참고문헌 32건
- Chebyshev and Fourier Spectral Methods 2001
- A Heuristic Knot Placement Algorithm for B-Spline Curve Approximation Computer-Aided Design and Applications · Taylor & Francis · 2004 10.1080/16864360.2004.10738319
- Detection of Edges in Spectral Data Applied and Computational Harmonic Analysis · Elsevier BV · 1999 10.1006/acha.1999.0262
- Isogeometric analysis: CAD, finite elements, NURBS, exact geometry and mesh refinement Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2005 10.1016/j.cma.2004.10.008
- Accelerating the Nonuniform Fast Fourier Transform SIAM Review · Society for Industrial and Applied Mathematics · 2004 10.1137/s003614450343200x
- The approximation power of moving least-squares Mathematics of Computation · American Mathematical Society · 1998 10.1090/s0025-5718-98-00974-0
- Discrete Periodic Extension Using an Approximate Step Function SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2014 10.1137/130932533
- Detecting derivative discontinuity locations in piecewise continuous functions from Fourier spectral data Numerical Algorithms · Springer Science+Business Media · 2007 10.1007/s11075-007-9127-x
- Elitist clonal selection algorithm for optimal choice of free knots in B-spline data fitting Applied Soft Computing · Elsevier BV · 2014 10.1016/j.asoc.2014.09.030
- A Fast Algorithm for Fourier Continuation SIAM Journal on Scientific Computing · Society for Industrial and Applied Mathematics · 2011 10.1137/11082436x
- A Gibbs phenomenon for spline functions Journal of Approximation Theory · Elsevier BV · 1991 10.1016/0021-9045(91)90034-8
- Approximation to Data by Splines with Free Knots SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 1978 10.1137/0715022
- Multidimensional Spline Interpolation: Theory and Applications Computational Economics · Springer Science+Business Media · 2007 10.1007/s10614-007-9092-4
- On calculating with B-splines Journal of Approximation Theory · Elsevier BV · 1972 10.1016/0021-9045(72)90080-9
- Detection of Edges in Spectral Data III—Refinement of the Concentration Method Journal of Scientific Computing · Springer Science+Business Media · 2007 10.1007/s10915-007-9170-8
- Spline Functions: Basic Theory. Mathematics of Computation · American Mathematical Society · 1982 10.2307/2007301
- Detection of Edges in Spectral Data II. Nonlinear Enhancement SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2000 10.1137/s0036142999359153
- Recovery of Edges from Spectral Data with Noise—A New Perspective SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2008 10.1137/070689899
- The Numerical Evaluation of <i>B</i>-Splines IMA Journal of Applied Mathematics · Oxford University Press · 1972 10.1093/imamat/10.2.134
- (제목 없음) Numerical Algorithms · Springer Science+Business Media · 2001 10.1023/a:1014022210828
- Filters, mollifiers and the computation of the Gibbs phenomenon Acta Numerica · Cambridge University Press · 2007 10.1017/s0962492906320016
- A novel knot selection method for the error-bounded B-spline curve fitting of sampling points in the measuring process Measurement Science and Technology · IOP Publishing · 2017 10.1088/1361-6501/aa6a05
- Turbulence statistics in a spectral element code: a toolbox for High-Fidelity Simulations 2017 10.2172/1349052
- Survey on geometric iterative methods and their applications Computer-Aided Design · Elsevier BV · 2017 10.1016/j.cad.2017.10.002
- Lossy Data Compression Effects on Wall-bounded Turbulence: Bounds on Data Reduction Flow Turbulence and Combustion · Springer Science+Business Media · 2018 10.1007/s10494-018-9923-5
- Foundations of Multivariate Functional Approximation for Scientific Data 2018 10.1109/ldav.2018.8739195
- Rational Approximation of Scientific Data Lecture notes in computer science · Springer Science+Business Media · 2019 10.1007/978-3-030-22734-0_2
- Fast Automatic Knot Placement Method for Accurate B-spline Curve Fitting Computer-Aided Design · Elsevier BV · 2020 10.1016/j.cad.2020.102905
- A new deterministic heuristic knots placement for B-Spline approximation Mathematics and Computers in Simulation · Elsevier BV · 2020 10.1016/j.matcom.2020.07.021
- Spline Functions: Basic Theory 2007 10.1017/cbo9780511618994
- T-splines and T-NURCCs ACM Transactions on Graphics · Association for Computing Machinery · 2003 10.1145/882262.882295
- Computational Science – ICCS 2018 Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-319-93701-4