<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>k-Wave User Forum &#187; Topic: How to determine the least squares error of the numerical result?</title>
		<link>http://www.k-wave.org/forum/topic/how-to-determine-the-least-squares-error-of-the-numerical-result</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 03:13:40 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/topic/how-to-determine-the-least-squares-error-of-the-numerical-result" rel="self" type="application/rss+xml" />

		<item>
			<title>Bradley Treeby on "How to determine the least squares error of the numerical result?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-determine-the-least-squares-error-of-the-numerical-result#post-3947</link>
			<pubDate>Tue, 08 Oct 2013 16:01:02 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">3947@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi bmezhou,&#60;/p&#62;
&#60;p&#62;We simply extracted the data from both the analytical solution and the k-Wave simulation for the same time points. There's a very similar example of how we did this in the toolbox under Numerical Analysis -&#38;gt; Modelling Nonlinear Wave Propagation.&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bmezhou on "How to determine the least squares error of the numerical result?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-determine-the-least-squares-error-of-the-numerical-result#post-3946</link>
			<pubDate>Tue, 08 Oct 2013 02:16:12 +0000</pubDate>
			<dc:creator>bmezhou</dc:creator>
			<guid isPermaLink="false">3946@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi Bradley,&#60;/p&#62;
&#60;p&#62;Thank you for your reply.&#60;/p&#62;
&#60;p&#62;I want to know, how did you determine the time of each point in the analytical solution?&#60;/p&#62;
&#60;p&#62;Did you perform any interpolation or did you use the following sentence:&#60;/p&#62;
&#60;p&#62;    &#60;code&#62;t = 0: dt: (number_points_period)*dt;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bradley Treeby on "How to determine the least squares error of the numerical result?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-determine-the-least-squares-error-of-the-numerical-result#post-3944</link>
			<pubDate>Mon, 07 Oct 2013 09:09:31 +0000</pubDate>
			<dc:creator>Bradley Treeby</dc:creator>
			<guid isPermaLink="false">3944@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi bmezhou,&#60;/p&#62;
&#60;p&#62;This figure is comparing both the k-space PSTD and leapfrog PSTD schemes with the exact solution. The error is computed by comparing the time traces recorded at a particular grid point in space using Eq. (13). An example of the time traces is shown in Fig. 3(a). The numerical dispersion introduced by the leapfrog time scheme introduces a distortion of the wave compared to the analytical solution, which is reflected in the error plot.&#60;/p&#62;
&#60;p&#62;I hope that helps,&#60;/p&#62;
&#60;p&#62;Brad.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bmezhou on "How to determine the least squares error of the numerical result?"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-determine-the-least-squares-error-of-the-numerical-result#post-3941</link>
			<pubDate>Sun, 06 Oct 2013 15:21:32 +0000</pubDate>
			<dc:creator>bmezhou</dc:creator>
			<guid isPermaLink="false">3941@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;In Treeby et al. (2012), the numerical results are compared with the analytical solution in Fig. 3(c).&#60;/p&#62;
&#60;p&#62;However, the time axis of these two data may not accord with each other due to dispersion. &#60;/p&#62;
&#60;p&#62;Thus, can anyone tell me how to calculate &#60;code&#62;the least squares error&#60;/code&#62;?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
