<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>CenterSpace Archives - CenterSpace</title>
	<atom:link href="https://www.centerspace.net/category/centerspace/feed" rel="self" type="application/rss+xml" />
	<link>https://www.centerspace.net/category/centerspace</link>
	<description>.NET numerical class libraries</description>
	<lastBuildDate>Fri, 13 Dec 2019 21:10:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.2</generator>
<site xmlns="com-wordpress:feed-additions:1">104092929</site>	<item>
		<title>Setting the NMath License Key</title>
		<link>https://www.centerspace.net/setting-the-nmath-license-key</link>
					<comments>https://www.centerspace.net/setting-the-nmath-license-key#comments</comments>
		
		<dc:creator><![CDATA[Ken Baldwin]]></dc:creator>
		<pubDate>Wed, 01 Aug 2012 19:46:51 +0000</pubDate>
				<category><![CDATA[CenterSpace]]></category>
		<category><![CDATA[NMath]]></category>
		<category><![CDATA[NMath Stats]]></category>
		<category><![CDATA[license key]]></category>
		<category><![CDATA[licensing]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=4052</guid>

					<description><![CDATA[<p>NMath license information is stored in a license key which must be found at runtime. When you purchase one or more developer seats of NMath, you will be issued a license key describing the terms of your license. If no license key is found at runtime, a default evaluation license key is used which provides [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/setting-the-nmath-license-key">Setting the NMath License Key</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>NMath</strong> license information is stored in a license key which must be found at runtime. When you purchase one or more developer seats of <strong>NMath</strong>, you will be issued a license key describing the terms of your license.</p>
<p>If no license key is found at runtime, a default evaluation license key is used which provides a free 30-day evaluation period for <strong>NMath</strong> on the current machine.</p>
<p>Three mechanisms are supported for setting your <strong>NMath</strong> license key:</p>
<ul>
<li>by setting the <code>NMATH_LICENSE_KEY</code> environment variable</li>
<li>by setting the <code>NMathLicenseKey</code> configuration app setting</li>
<li>by programmatically setting the <code>LicenseKey</code> property on class <a href="https://www.centerspace.net/doc/NMathSuite/ref/html/T_CenterSpace_NMath_Core_NMathConfiguration.htm">NMathConfiguration</a></li>
</ul>
<p>Settings are applied in that order, and resetting the license key takes precedent over any earlier values. For example, here the environment variable is used:</p>
<pre class="code"> &gt; set NMATH_LICENSE_KEY="&lt;your key here&gt;"</pre>
<p>This code uses an app config file:</p>
<pre class="code">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;configuration&gt;
  &lt;appSettings&gt;
    &lt;add key="NMathLicenseKey" value="<strong>&lt;your key here&gt;</strong>" /&gt;
  &lt;/appSettings&gt;
&lt;/configuration&gt;</pre>
<p>And this code accomplishes the same thing programmatically:</p>
<pre class="code">NMathConfiguration.LicenseKey = "<strong>&lt;your key here&gt;</strong>";</pre>
<p><strong>Note 1:</strong> Setting your license key works the same way for development and deployment machines.</p>
<p><strong>Note 2:</strong> If you forget to set your license key on a machine, your code <strong>NMath</strong> code will work initially, using the default evaluation license, but this license will expire in 30 days.</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/setting-the-nmath-license-key">Setting the NMath License Key</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/setting-the-nmath-license-key/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4052</post-id>	</item>
		<item>
		<title>NMath Configuration</title>
		<link>https://www.centerspace.net/nmath-configuration</link>
					<comments>https://www.centerspace.net/nmath-configuration#comments</comments>
		
		<dc:creator><![CDATA[Ken Baldwin]]></dc:creator>
		<pubDate>Fri, 20 Jul 2012 15:35:10 +0000</pubDate>
				<category><![CDATA[CenterSpace]]></category>
		<category><![CDATA[NMath]]></category>
		<category><![CDATA[NMath Stats]]></category>
		<category><![CDATA[.NET math library]]></category>
		<category><![CDATA[C# math library]]></category>
		<category><![CDATA[F# math library]]></category>
		<category><![CDATA[new C# math library release]]></category>
		<category><![CDATA[new NMath release]]></category>
		<category><![CDATA[new NMath Stats release]]></category>
		<category><![CDATA[NMath configuration]]></category>
		<category><![CDATA[VB math library]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=3946</guid>

					<description><![CDATA[<p>Beginning with the release of NMath 5.2 and NMath Stats 3.5, NMath includes a new configuration system for controlling the loading of the NMath license key, kernel assembly, and native library. Based on customer feedback, we've designed this system to provide greater flexibility and security at deployment, and greater convenience in group development environments. We've also added optional logging to help debug configuration issues.</p>
<p>An NMath license file is no longer used.</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/nmath-configuration">NMath Configuration</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Beginning with the <a href="/new-versions-of-nmath-libraries-released-4/">release of NMath 5.2 and NMath Stats 3.5</a>, <strong>NMath</strong> includes a new configuration system for controlling the loading of the <strong>NMath</strong> license key, kernel assembly, and native library. Based on customer feedback, we&#8217;ve designed this system to provide greater flexibility and security at deployment, and greater convenience in group development environments. We&#8217;ve also added optional logging to help debug configuration issues.</p>
<p><span style="color: red;">An NMath license file is no longer used.</span></p>
<h3>NMath License Key</h3>
<p><strong>NMath</strong> license information is stored in a license key which must be found at runtime. The license key governs the properties of your <strong>NMath</strong> installation. If no license key is found, a default evaluation license key is used which provides a free 30-day evaluation period for <strong>NMath</strong> on the current machine.</p>
<p>When you purchase one or more developer seats of <strong>NMath</strong>, you will be issued a license key describing the terms of your license. To enter your license key:</p>
<ol>
<li>Open <strong>CenterSpace Software | License NMath</strong> from your <strong>Start</strong> menu.</li>
<li>Enter your name, email, and license key, and click <strong>OK</strong>.</li>
</ol>
<p>The license key will be written to the registry. You can also specify your license key using various other mechanisms: by environment variable, by configuration app setting, and programmatically. These mechanisms may be preferable in group development environments, and at deployment. (See below.)</p>
<h3>NMath Configuration</h3>
<p>NMath configuration settings govern the loading of the <strong>NMath</strong> license key, kernel assembly, and native library. Property values can be set three ways:</p>
<ul>
<li>by environment variable</li>
<li>by configuration app setting</li>
<li>by programmatically setting properties on class <a href="https://www.centerspace.net/doc/NMathSuite/ref/html/T_CenterSpace_NMath_Core_NMathConfiguration.htm">NMathConfiguration</a></li>
</ul>
<p>Settings are applied in that order, and resetting a property takes precedent over any earlier values. For example, here an environment variable is used:</p>
<pre lang="csharp"> > set NMATH_NATIVE_LOCATION="C:\tmp"</pre>
<p>This code uses an app config file:</p>
<pre class="code">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;configuration&gt;
  &lt;appSettings&gt;
    &lt;add key="NMathNativeLocation" value="C:\tmp" /&gt;
  &lt;/appSettings&gt;
&lt;/configuration&gt;
</pre>
<p>And this code accomplishes the same thing programmatically:</p>
<pre lang="csharp" line="1">NMathConfiguration.NativeLocation = @"C:\tmp";</pre>
<p>Also, all paths can be specified relative to the executable.  So to place the natives in an existing directory named <i>resources</i> adjacent to the executable one would<br />
write:</p>
<pre lang="csharp" line="1">NMathConfiguration.NativeLocation = @"..\resources";</pre>
<p>The supported environment variables, configuration app setting keys, and property names are show below.</p>
<pre class="code">
<table border="1" cellspacing="0" cellpadding="5">
<tbody>
<tr>
<th>Environment Variable</th>
<th>Configuration Setting</th>
<th>Property</th>
</tr>
<tr>
<td><code>NMATH_LOG_LOCATION</code></td>
<td><code>NMathLogLocation</code></td>
<td><code>LogLocation</code></td>
</tr>
<tr>
<td><code>NMATH_LICENSE_KEY</code></td>
<td><code>NMathLicenseKey</code></td>
<td><code>LicenseKey</code></td>
</tr>
<tr>
<td><code>NMATH_NATIVE_LOCATION</code></td>
<td><code>NMathNativeLocation</code></td>
<td><code>NativeLocation</code></td>
</tr>
<tr>
<td><code>NMATH_USE_SEQUENTIAL_THREADING</code></td>
<td><code>NMathUseSequentialThreading</code></td>
<td><code>UseSequentialThreading</code></td>
</tr>
<tr>
<td><code>NMATH_USE_EXTERNAL_THREADING</code></td>
<td><code>NMathUseExternalThreading</code></td>
<td><code>UseExternalThreading</code></td>
</tr>
</tbody>
</table></pre>
<p>NOTE- Assembly loading and license checking is normally performed the first time you make an <strong>NMath</strong> call. If you wish to explicitly control when these operations occur&#8211;at application start-up, for example&#8211;use the static <a href="https://www.centerspace.net/doc/NMathSuite/ref/html/M_CenterSpace_NMath_Core_NMathConfiguration_Init.htm">NMathConfiguration.Init()</a> method.</p>
<p>For example, when using Mono on a Mac, to configured NMath with a sequentially threaded library set the environmental variable as follows.</p>
<pre lang="csharp"> > export NMATH_USE_SEQUENTIAL_THREADING="True" </pre>
<p><strong>Logging</strong></p>
<p>To debug configuration issues, specify a log file location. For example, setting the property programmatically to place the NMath log file in the same directory as the executable one would write:</p>
<pre lang="csharp" line="1">NMathConfiguration.LogLocation = @".";</pre>
<p>Or if you prefer to use a global temporary directory you could specify an absolute path.</p>
<pre lang="csharp" line="1">NMathConfiguration.LogLocation = @"C:\temp\logs";</pre>
<p>This creates a file named <code>NMathConfiguration.log</code> at the specified location containing log output. <i>The specified location must exist</i>. To turn off logging, set the log location to null.</p>
<p><strong>License Key</strong></p>
<p>You can specify your <strong>NMath</strong> license key using the <code>LicenseKey</code> property, or the equivalent environment variable or app config setting. If so, any keys in the registry are ignored.</p>
<p><strong>Native Location</strong></p>
<p>The NMath native assembly must be found at runtime. Failure to locate this file is one of the most common configuration issues, especially in deployment. The search order is determined by your <code>PATH</code> (on Windows systems). Some standard locations are automatically prepended to your (process-specific) <code>PATH</code>. You can also use the <code>NativeLocation</code> property, or the equivalent environment variable or app config setting, to prepend another location.</p>
<p><strong>Alternative Kernel and Native Assemblies</strong></p>
<p>The names of the <strong>NMath</strong> kernel and native assemblies are determined by your platform (x86 or x64), and the values of the <code>UseSequentialThreading</code> and <code>UseExternalThreading</code> properties, as shown below:</p>
<pre class="code">Standard
     Kernel
          NMathKernelx86.dll
          NMathKernelx64.dll
     Native
          nmath_native_x86.dll
          nmath_native_x64.dll

Sequentially-Threaded
     Kernel
          NMathKernelx86Sequential.dll
          NMathKernelx64Sequential.dll
     Native
          nmath_native_x86_seq.dll
          nmath_native_x64_seq.dll

Externally-Threaded
     Kernel
          NMathKernelx86External.dll
          NMathKernelx64External.dll
     Native
          nmath_native_x86_ext.dll
          nmath_native_x64_ext.dll</pre>
<p>Sequentially-threaded and externally-threaded kernel and native assemblies are available upon request from CenterSpace Software:</p>
<ul>
<li><strong>Sequentially-Threaded: </strong> MKL contains highly optimized, extensively threaded math routines. In rare cases, these can cause conflicts between the Intel OMP threading library (<code>libiomp.dll</code>) and the .NET threading model. If your .NET application is itself highly multi-threaded, you may wish to use the sequentially-threaded version of MKL.</li>
<li><strong>Externally-Threaded:</strong> <strong>NMath</strong> normally statically links in the Intel OMP threading library described above. Sometimes this can cause collisions with libraries from other vendors that also use OMP. The externally-threaded version of <code>NMath</code> dynamically-links in OMP.</li>
</ul>
<p>To trigger loading of these assemblies, use properties <code>UseSequentialThreading</code> and <code>UseExternalThreading</code> on class <a href="https://www.centerspace.net/doc/NMathSuite/ref/html/T_CenterSpace_NMath_Core_NMathConfiguration.htm">NMathConfiguration</a>, or the equivalent environment variables or app config settings. Both properties default to <code>false</code>.</p>
<p><code>UseSequentialThreading</code> and <code>UseExternalThreading</code> are mutually exclusive, and <code>UseSequentialThreading</code> takes precedence; <code>UseExternalThreading</code> only has an effect if <code>UseSequentialThreading</code> is <code>false</code>.</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/nmath-configuration">NMath Configuration</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/nmath-configuration/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3946</post-id>	</item>
		<item>
		<title>CenterSpace @ TechEd</title>
		<link>https://www.centerspace.net/centerspace-teched</link>
					<comments>https://www.centerspace.net/centerspace-teched#respond</comments>
		
		<dc:creator><![CDATA[Trevor Misfeldt]]></dc:creator>
		<pubDate>Mon, 16 May 2011 16:13:15 +0000</pubDate>
				<category><![CDATA[CenterSpace]]></category>
		<category><![CDATA[Corporate]]></category>
		<category><![CDATA[Visualization]]></category>
		<category><![CDATA[Infragistics]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=3439</guid>

					<description><![CDATA[<p>We will be giving demos at the Infragistics booth (#616) at Tech Ed 2011 in Atlanta. Come by and say hello! &#8211; Trevor</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/centerspace-teched">CenterSpace @ TechEd</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We will be giving demos at the Infragistics booth (#616) at Tech Ed 2011 in Atlanta. Come by and say hello!</p>
<p><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/05/andy_tech_ed4.jpg"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-3456" title="andy_tech_ed" src="https://www.centerspace.net/blog/wp-content/uploads/2011/05/andy_tech_ed4.jpg" alt="" width="400" height="533" srcset="https://www.centerspace.net/wp-content/uploads/2011/05/andy_tech_ed4.jpg 400w, https://www.centerspace.net/wp-content/uploads/2011/05/andy_tech_ed4-225x300.jpg 225w" sizes="(max-width: 400px) 100vw, 400px" /></a></p>
<p>&#8211; Trevor</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/centerspace-teched">CenterSpace @ TechEd</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/centerspace-teched/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3439</post-id>	</item>
		<item>
		<title>Accessing .Net Libraries in SQL Server</title>
		<link>https://www.centerspace.net/accessing-net-libraries-in-sql-server</link>
					<comments>https://www.centerspace.net/accessing-net-libraries-in-sql-server#respond</comments>
		
		<dc:creator><![CDATA[CenterSpace]]></dc:creator>
		<pubDate>Thu, 12 May 2011 01:16:11 +0000</pubDate>
				<category><![CDATA[CenterSpace]]></category>
		<category><![CDATA[Corporate]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[NMath]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=3399</guid>

					<description><![CDATA[<p>Running NMath in the SQL Server CLR using User Defined Types (UDTs) and User Defined Functions (UDFs).</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/accessing-net-libraries-in-sql-server">Accessing .Net Libraries in SQL Server</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>  In previous posts we demonstrated calling CenterSpace&#8217;s NMath libraries from Excel.  Some customers asked if we could call these libraries from Microsoft&#8217;s SQL Server so we decided to give it a shot.  It turns out the problem is a substantially harder problem to solve as the SQL environment is an order of magnitude more complex.  This post will show it is possible, but with a few caveats.</p>
<p>  There are a myriad of ways SQL Server can be setup and for this post, we took whatever shortcut we could find.  Our goal was to get this running and worry about doing it &#8220;right&#8221; later.  We found ourselves on a fairly steep learning curve without a lot of examples to work off of. Consider this more of a &#8220;proof of concept&#8221; post than the definitive &#8220;how to&#8221;.</p>
<p>  As mentioned above there are lot of different approaches to this problem.  In our minds, we wanted to see if we could couple our library at the server side and access results via Reporting Services and Report Builder. We believed that the computations would be more efficient to be handled at the server while the result could take advantage of the graphing packages in Report Services.</p>
<p>  Our approach was to build a standalone system to develop and test this work on.  We choose a standard PC platform running Windows 7.  The first task at hand was to decide which version of Microsoft SQL Server to work with.  We chose SQL Server 2008R2 full version as we needed the Report Services support.  Microsoft supplies a six month trial version that has all services available which was perfect for our project.  We installed the full version with support for the Management Studio, Report Services, and Analysis services. In addition, we downloaded Microsoft&#8217;s AdventureWorks sample databases for our testing environment.</p>
<p>  We got this all running and ran some sample scripts to make sure we had everything running correctly before moving on.  Since we were going to be developing code we installed Visual Studio 2010 next and made sure we included the necessary development templates for the SQL Server environment.</p>
<p>  After installing CenterSpace&#8217;s NMath 5.0 library, we were ready to write some code.</p>
<p>  We will start by creating a new project in Visual Studio called NMathSQL.</p>
<figure id="attachment_3404" aria-describedby="caption-attachment-3404" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_01.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_01.png" alt="" title="Creating a SQL CLR project in Visual Studio" width="500" class="size-full wp-image-3404" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_01.png 927w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_01-300x213.png 300w" sizes="(max-width: 927px) 100vw, 927px" /></a><figcaption id="caption-attachment-3404" class="wp-caption-text">Creating a new SQL CLR project in Visual Studio</figcaption></figure>
<p>We then asked to pick a server and identify the database we will be using.<br />
<figure id="attachment_3406" aria-describedby="caption-attachment-3406" style="width: 400px" class="wp-caption aligncenter"><br />
<a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_02.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_02.png" alt="" title="Connecting to the Database" width="400"  class="size-full wp-image-3406" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_02.png 453w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_02-206x300.png 206w" sizes="(max-width: 453px) 100vw, 453px" /></a><figcaption id="caption-attachment-3406" class="wp-caption-text">Connecting to the Database</figcaption></figure></p>
<p>  In the next screen we will want to enable SQL/CLR debugging.</p>
<figure id="attachment_3411" aria-describedby="caption-attachment-3411" style="width: 400px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_03.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_03.png" alt="" title="Enabling SQL/CLR Debugging" width="400" class="size-full wp-image-3411" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_03.png 470w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_03-300x141.png 300w" sizes="(max-width: 470px) 100vw, 470px" /></a><figcaption id="caption-attachment-3411" class="wp-caption-text">Enabling SQL/CLR debugging</figcaption></figure>
<p>  At this point we need to start running SQL scripts as part of the overall setup. We could exit VS and perform these tasks in the Management Studio, but VS can do the job.  By selecting from the VS menu bar Data>Transact-SQL Editor>New Query Connection, we get a new window to enter scripts to be run on our database.</p>
<figure id="attachment_3414" aria-describedby="caption-attachment-3414" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_04.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_04.png" alt="" title="Accessing the Transact SQL Editor " width="500" class="size-full wp-image-3414" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_04.png 839w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_04-300x173.png 300w" sizes="(max-width: 839px) 100vw, 839px" /></a><figcaption id="caption-attachment-3414" class="wp-caption-text">Accessing the Transact SQL Editor in Visual Studio</figcaption></figure>
<p>  We found it easier to copy and paste our scripts into this windows as we needed to run SQL statements.</p>
<p>  Our first task at hand is to load the assembly NMath.dll into the database we have selected to work in. It is at this point we hit our first real obstacle.  It turns out that in our shipping NMath.dll we are using some instructions to automatically load x86 or x64. These are illegal in the SQL CLR.  We were forced to remove these instructions and build an entirely separate version of NMath.dll for SQL Server.  Stepping back and looking at the big picture, we decided that this was an opportunity to also include some of the &#8220;glue&#8221; code we knew we wanted to write.  </p>
<p>  We had been looking at writing some User Defined Types (UDT) and User Defined Aggregate (UDA) functions to handle the calls into our library. It seemed to make sense to extend our libraries type definitions to be T-SQL types. The result of this approach would enable T-SQL to use NMath types such as DoubleVector and DoubleMatrix. We needed to have some way to load our new data types so we built UDAs LoadDoubleVector, LoadDoubleMatrixByRow, and LoadDoubleMatrixByColumn.  After building our new, custom NMath.dll, we can then run a script to load our assembly into the database.  </p>
<p>  Before we could do this, though, we discovered that we needed some basic assemblies that SQL server had left out of their CLR.  The following SQL script loads those assemblies.</p>
<figure id="attachment_3415" aria-describedby="caption-attachment-3415" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_05.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_05.png" alt="" title="Loading Supporting Assemblies" width="500"  class="size-full wp-image-3415" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_05.png 793w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_05-300x182.png 300w" sizes="(max-width: 793px) 100vw, 793px" /></a><figcaption id="caption-attachment-3415" class="wp-caption-text">Loading Supporting Assemblies to a SQL Database</figcaption></figure>
<p>  We are now ready to run the following SQL script to load NMath for SQL.</p>
<figure id="attachment_3418" aria-describedby="caption-attachment-3418" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_06.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_06.png" alt="" title="Loading NMath assembly in the SQL Database" width="500"  class="size-full wp-image-3418" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_06.png 543w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_06-300x231.png 300w" sizes="(max-width: 543px) 100vw, 543px" /></a><figcaption id="caption-attachment-3418" class="wp-caption-text">Loading NMath assembly in the SQL Database</figcaption></figure>
<p>  The next step is to add the reference to our project. From the main toolbar launch the Solution Explorer and right click on Reference then select Add Reference.  Add the new assemblies we have loaded so far.</p>
<figure id="attachment_3419" aria-describedby="caption-attachment-3419" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_07.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_07.png" alt="" title="Adding NMath reference to the SQL/CLR project" width="500" class="size-full wp-image-3419" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_07.png 729w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_07-300x165.png 300w" sizes="(max-width: 729px) 100vw, 729px" /></a><figcaption id="caption-attachment-3419" class="wp-caption-text">Adding NMath reference to the SQL/CLR project</figcaption></figure>
<p>  We will now have to tell SQL about the new types and functions we have added.  We will start by adding the new UDTs DoubleVector and DoubleMatrix.</p>
<figure id="attachment_3421" aria-describedby="caption-attachment-3421" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_08.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_08.png" alt="" title="SQL commands to add UDTs for LoadDoubleVector" width="500" class="size-full wp-image-3421" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_08.png 519w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_08-300x231.png 300w" sizes="(max-width: 519px) 100vw, 519px" /></a><figcaption id="caption-attachment-3421" class="wp-caption-text">SQL commands to add UDTs for LoadDoubleVector</figcaption></figure>
<p>  Now that SQL knows about our new types we can add the UDA functions with the following SQL commands.</p>
<figure id="attachment_3422" aria-describedby="caption-attachment-3422" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_09.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_09.png" alt="" title="SQL Commands to add UDAs to the Database" width="500"  class="size-full wp-image-3422" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_09.png 618w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_09-300x199.png 300w" sizes="(max-width: 618px) 100vw, 618px" /></a><figcaption id="caption-attachment-3422" class="wp-caption-text">SQL Commands to add NMaths UDAs to the Database</figcaption></figure>
<p>  At this point we are ready to test our library.  We have chosen a problem that represents the work expected to be perform.  We will create our sample datapoint tables rather than use tables from the AdventureWorks database. We will then load the data from the tables into DoubleVectors and call our library using a User Defined Function(UDF). Our UDF will be a call to library to find the function values for a curve that fits our datapoints.  From our function solution we will create a table with datapoints that represent our curve function to compare against our original datapoints.</p>
<p>  We will start by creating the UDF call to our library. From the Solution Explorer, we will add a UDF template called NMathFunction.cs.</p>
<p>  Here is the C# code for this function call:</p>
<pre lang="csharp">
using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;
using CenterSpace.NMath.Core;
using CenterSpace.NMath.Analysis;


public partial class UserDefinedFunctions
{
    [Microsoft.SqlServer.Server.SqlFunction]
    public static DoubleVector NMathFunction(DoubleVector xValues, DoubleVector yValues, DoubleVector start)
    {
        NMathFunctions.GeneralizedDoubleUnaryFunction f = AnalysisFunctions.FourParameterLogistic;
        OneVariableFunctionFitter fitter = new OneVariableFunctionFitter(f);
        return new DoubleVector(fitter.Fit(xValues, yValues, start));
    }
}
</pre>
<p>  We can now tell VS to build the assembly NmathSQL.dll and use SQL to load the assembly to our database.</p>
<figure id="attachment_3423" aria-describedby="caption-attachment-3423" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_10.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_10.png" alt="" title="Loading our custom NMathFunctions to the database" width="500" class="size-full wp-image-3423" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_10.png 772w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_10-300x169.png 300w" sizes="(max-width: 772px) 100vw, 772px" /></a><figcaption id="caption-attachment-3423" class="wp-caption-text">Loading our custom NMathFunctions to the database</figcaption></figure>
<p>  In order for our UDF NmathFunction to be recognized we need to run a SQL create function command. Note that this command must be the only command in the script.  </p>
<figure id="attachment_3424" aria-describedby="caption-attachment-3424" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_11.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_11.png" alt="" title="SQL Commands to Create a UDF function" width="500" class="size-full wp-image-3424" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_11.png 636w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_11-300x191.png 300w" sizes="(max-width: 636px) 100vw, 636px" /></a><figcaption id="caption-attachment-3424" class="wp-caption-text">SQL Commands to add our UDF to the database</figcaption></figure>
<p>  We have now loaded our NMath function call in the database that can be called by scripts. We are ready to write a script to solve the problem we described above.</p>
<p>  We will start by using the same data from the example we did with our excel post.</p>
<figure id="attachment_3425" aria-describedby="caption-attachment-3425" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_12.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_12.png" alt="" title="Sample Data for our example" width="500" class="size-full wp-image-3425" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_12.png 602w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_12-268x300.png 268w" sizes="(max-width: 602px) 100vw, 602px" /></a><figcaption id="caption-attachment-3425" class="wp-caption-text">Sample Data for our example</figcaption></figure>
<p>  We can now build a script that uses the functionality we have built in with our library to find the solution.</p>
<pre lang="csharp">
-------------------------------------------------------
Declare @xv DoubleVector
Declare @yv DoubleVector

select @xv = dbo.LoadDoubleVector(xcol) from xvalues
select @yv = dbo.LoadDoubleVector(ycol) from yvalues

Declare @sPar DoubleVector
Declare @solution DoubleVector

set @sPar = '[ 0.1 0.1 0.1 0.1]'

select @solution = dbo.NMathFunction(@xv, @yv, @sPar)
 
select @solution.ToString()

declare @newxval float
declare @newyval float
declare @inc float
declare @a float
declare @b float
declare @c float
declare @d float

set @a = dbo.DVItem(@solution, 0)
set @b = dbo.DVItem(@solution, 1)
set @c = dbo.DVItem(@solution, 2)
set @d = dbo.DVItem(@solution, 3)
 
create table SolutionTBL (newxval float, newyval float)
	set @newxval = 0
	 
	while @newxval < 35.10
	begin
	   
	    set @newyval = @d+((@a-@d)/(1+POWER((@newxval/@c), @b)))
			     
	    insert into SolutionTBL values(@newxval, @newyval)
	    
	  set @newxval = (@newxval + 0.33)
	end
	select * from SolutionTBL
	go
---------------------------------------------------------------------
</pre>
<p>  Here is the output from this script</p>
<figure id="attachment_3427" aria-describedby="caption-attachment-3427" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_13.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_13.png" alt="" title="Returned Solution from NMath library call" width="500" class="size-full wp-image-3427" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_13.png 494w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_13-239x300.png 239w" sizes="(max-width: 494px) 100vw, 494px" /></a><figcaption id="caption-attachment-3427" class="wp-caption-text">Returned Solution from NMath library call</figcaption></figure>
<p>  At this point we can pull data from tables, call our Math libraries, and put the solution in a table to be displayed. In production, this last script would be a stored procedure that would be run from the Management Studio. All of this work would reside on the SQL Server.  </p>
<p>We can now move on to the Reporting Services to see how this solution could be displayed.</p>
<p>  After launching Report Builder and establishing connection to the database. The data is accessed by setting up a dataset with a query into the table for the necessary data.</p>
<figure id="attachment_3430" aria-describedby="caption-attachment-3430" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_13a.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_13a.png" alt="" title="Selecting the data in Report Builder" width="500" class="size-full wp-image-3430" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_13a.png 622w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_13a-150x150.png 150w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_13a-300x300.png 300w" sizes="(max-width: 622px) 100vw, 622px" /></a><figcaption id="caption-attachment-3430" class="wp-caption-text">Selecting the chart data in Report Builder</figcaption></figure>
<p>  From there it is merely Report Builder to build the necessary graphs.  Unfortunately, the chart wizard doesn't include scatterplots. It is best to select a chart type of Line and then run through the wizard.  After your chart is set up you can change its properties to scatterplot.</p>
<figure id="attachment_3431" aria-describedby="caption-attachment-3431" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_14.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_14.png" alt="" title="Report Builder ScatterPlot" width="500" class="size-full wp-image-3431" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_14.png 962w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_14-300x209.png 300w" sizes="(max-width: 962px) 100vw, 962px" /></a><figcaption id="caption-attachment-3431" class="wp-caption-text">Report Builder ScatterPlot</figcaption></figure>
<p>  We can include our solution in the same report and generate a smooth line as we did in excel. The Report Builder is a very powerful tool which we are still learning.</p>
<figure id="attachment_3432" aria-describedby="caption-attachment-3432" style="width: 500px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_15.png"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2011/04/NMathSQL_15.png" alt="" title="Solution Fitted Line" width="500" class="size-full wp-image-3432" srcset="https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_15.png 939w, https://www.centerspace.net/wp-content/uploads/2011/04/NMathSQL_15-300x195.png 300w" sizes="(max-width: 939px) 100vw, 939px" /></a><figcaption id="caption-attachment-3432" class="wp-caption-text">Solution Fitted Line</figcaption></figure>
<p>  Our results are equivilent to our previous excel post and demonstrate that the approach on the SQL Server is as accurate.</p>
<p>In conclusion, we have demonstrated that we can call the CenterSpace NMath libraries from SQL Server and display the results using Report Services powerful charting capabilities.  We plan to work on more examples and compare how we might improve on what Analysis Services can produce.  We certainly will entertain feedback on useful approaches that should be examined. As a reminder this interface is not possible with our current release of NMath 5.0 and require a "special" version of our assembly.  Depending on customer interest and feedback we may or may not decide to develop a product for this interface.</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/accessing-net-libraries-in-sql-server">Accessing .Net Libraries in SQL Server</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/accessing-net-libraries-in-sql-server/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3399</post-id>	</item>
		<item>
		<title>SuperComputing 2010</title>
		<link>https://www.centerspace.net/supercomputing-2010-in-new-orleans</link>
					<comments>https://www.centerspace.net/supercomputing-2010-in-new-orleans#respond</comments>
		
		<dc:creator><![CDATA[CenterSpace]]></dc:creator>
		<pubDate>Fri, 15 Oct 2010 17:14:47 +0000</pubDate>
				<category><![CDATA[CenterSpace]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[HC10]]></category>
		<category><![CDATA[SuperComputing 2010]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=2774</guid>

					<description><![CDATA[<p><img src="https://www.centerspace.net/blog/wp-content/uploads/2010/10/SC.jpg" alt="SC 10 log" title="SC 10"  class="excerpt" /><br />
CenterSpace Software is presenting at SuperComputing 2010 in New Orleans on November 18th.</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/supercomputing-2010-in-new-orleans">SuperComputing 2010</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>CenterSpace Software will be at <a href="http://sc10.supercomputing.org/">SC 10</a> in New Orleans. Our team will be delivering a presentation at the Intel booth on November 18th at noon.  Our CEO, Trevor Misfeldt, and CTO, Paul Shirkey, will be presenting a customer success story on NMath and MKL.<br />
</br><br />
<center><img decoding="async" loading="lazy" src="https://www.centerspace.net/blog/wp-content/uploads/2010/10/SC.jpg" alt="SuperComputing 2010 logo" title="SuperComputing 2010 logo" width="204" height="130" class="size-full wp-image-2782" /></center><br />
</br><br />
If you&#8217;re attending, please join us at the presentation. We look forward to seeing you. Let us know in advance and we can schedule some time to talk about NMath, consulting, cloud computing and new features.</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/supercomputing-2010-in-new-orleans">SuperComputing 2010</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/supercomputing-2010-in-new-orleans/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2774</post-id>	</item>
		<item>
		<title>Go Back to School with NMath</title>
		<link>https://www.centerspace.net/go-back-to-school-with-nmath</link>
					<comments>https://www.centerspace.net/go-back-to-school-with-nmath#respond</comments>
		
		<dc:creator><![CDATA[CenterSpace]]></dc:creator>
		<pubDate>Wed, 08 Sep 2010 20:55:50 +0000</pubDate>
				<category><![CDATA[CenterSpace]]></category>
		<category><![CDATA[Student version]]></category>
		<category><![CDATA[.NET math library]]></category>
		<category><![CDATA[centerspace news]]></category>
		<category><![CDATA[nmath student version]]></category>
		<category><![CDATA[student nmath]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=2635</guid>

					<description><![CDATA[<p>CenterSpace is offering a new NMath student edition, perfect for the student taking .NET programming courses focusing on math, statistics or engineering. <img class="excerpt" title="math_graphic" src="https://www.centerspace.net/blog/wp-content/uploads/2010/09/math_graphic1-300x176.jpg" alt="" width="218" height="111" /></p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/go-back-to-school-with-nmath">Go Back to School with NMath</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>CenterSpace Software is proud to announce the release of the Student Edition of its NMath and NMath Stats numerical libraries.</strong></p>
<p>NMath Student Editions are fully functional versions of the NMath libraries that expire in one year.  Perfect for the student taking .NET programming courses focusing on math, statistics or engineering.</p>
<p>&#8220;More and more students are requesting our libraries to help them with their programming projects.&#8221; says CEO Trevor Misfeldt  &#8220;This new edition allows them to use the NMath libraries for a longer period of time at a very low cost.&#8221;</p>
<p>This year you can go back to school with NMath!</p>
<p style="text-align: center;"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/09/math_graphic1.jpg"><img decoding="async" loading="lazy" class="size-medium wp-image-2641 aligncenter" title="math_graphic" src="https://www.centerspace.net/blog/wp-content/uploads/2010/09/math_graphic1-300x176.jpg" alt="" width="218" height="111" /></a></p>
<p>Student versions are licensed for non-commerical use only, proof of student status is required after purchase and before delivery.</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/go-back-to-school-with-nmath">Go Back to School with NMath</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/go-back-to-school-with-nmath/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2635</post-id>	</item>
		<item>
		<title>Join CenterSpace at the Intel Developer Forum in San Francisco!</title>
		<link>https://www.centerspace.net/join-us-at-idf-in-san-francisco</link>
					<comments>https://www.centerspace.net/join-us-at-idf-in-san-francisco#respond</comments>
		
		<dc:creator><![CDATA[CenterSpace]]></dc:creator>
		<pubDate>Wed, 08 Sep 2010 20:44:43 +0000</pubDate>
				<category><![CDATA[CenterSpace]]></category>
		<category><![CDATA[centerspace news]]></category>
		<category><![CDATA[IDF]]></category>
		<category><![CDATA[Intel developer forum]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=2643</guid>

					<description><![CDATA[<p><img class="excerpt" title="IDF2010" src="https://www.centerspace.net/blog/wp-content/uploads/2010/09/IDF20102.jpg" alt="intel developer forum"/></a>CenterSpace CEO Trevor Misfeldt, and CTO Paul Shirkey, will be attending the Intel Developer Forum...</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/join-us-at-idf-in-san-francisco">Join CenterSpace at the Intel Developer Forum in San Francisco!</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="text-align: left;"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/09/IDF20102.jpg"><img decoding="async" loading="lazy" class="alignleft size-full wp-image-2648" title="IDF2010" src="https://www.centerspace.net/blog/wp-content/uploads/2010/09/IDF20102.jpg" alt="intel developer forum" width="160" height="96" /></a>CenterSpace CEO Trevor Misfeldt, and CTO Paul Shirkey, will be attending the Intel Developer Forum on Sept 13th &amp; 14th in San Francisco. </p>
<p>Any one who would like to meet with them personally during their time in the Bay Area can contact Amy to schedule an appointment.  541.896.1301</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/join-us-at-idf-in-san-francisco">Join CenterSpace at the Intel Developer Forum in San Francisco!</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/join-us-at-idf-in-san-francisco/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2643</post-id>	</item>
		<item>
		<title>NMath Driving New High Performance Signal Visualizer</title>
		<link>https://www.centerspace.net/nmath-driving-new-high-performance-signal-visualizer</link>
					<comments>https://www.centerspace.net/nmath-driving-new-high-performance-signal-visualizer#respond</comments>
		
		<dc:creator><![CDATA[Paul Shirkey]]></dc:creator>
		<pubDate>Mon, 30 Aug 2010 22:56:35 +0000</pubDate>
				<category><![CDATA[CenterSpace]]></category>
		<category><![CDATA[Corporate]]></category>
		<category><![CDATA[arction chart]]></category>
		<category><![CDATA[arction lightning chart]]></category>
		<category><![CDATA[c# chart tool]]></category>
		<category><![CDATA[c# FFT]]></category>
		<category><![CDATA[C# power spectral density]]></category>
		<category><![CDATA[c# real time chart]]></category>
		<category><![CDATA[centerspace news]]></category>
		<category><![CDATA[lightning chart]]></category>
		<category><![CDATA[signal processing .NET chart]]></category>
		<category><![CDATA[signal visualization .NET]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=2589</guid>

					<description><![CDATA[<p><img src="https://www.centerspace.net/blog/wp-content/uploads/2010/08/3DFFTWaveMonitor_Single-150x150.jpg" alt="" title="Power Spectrum" width="150" height="150" class="excerpt" /><br />
CenterSpace Software and <a href="http://www.lightningchart.com/">Arction</a> have created a new partnership to bring our shared customers a new high performance computing and visualization package. </p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/nmath-driving-new-high-performance-signal-visualizer">NMath Driving New High Performance Signal Visualizer</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>CenterSpace Software and <a href="http://arction.com/">Arction</a> have created a partnership to bring our shared customers a new high performance computing and visualization package. Arction has built a .NET chart tool for demanding visualization applications such as:</p>
<blockquote>
<ul>
<li>professional high-speed data acquisition software</li>
<li>real-time measurement and signal monitoring applications</li>
<li>PC-based oscilloscopes and signal analyzers</li>
<li>scientific research</li>
<li>medical measurement displays</li>
<li>topographic map rendering</li>
</ul>
</blockquote>
<p>Arction chose CenterSpace&#8217;s NMath tool set for driving their prototypical examples for the 2010 Measuring and Testing conference in Helsinki.</p>
<figure id="attachment_2600" aria-describedby="caption-attachment-2600" style="width: 300px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/08/3DFFTWaveMonitor.jpg"><img decoding="async" loading="lazy" class="size-medium wp-image-2600" title="Lightening Chart of Power Spectrum" src="https://www.centerspace.net/blog/wp-content/uploads/2010/08/3DFFTWaveMonitor-300x201.jpg" alt="" width="300" height="201" srcset="https://www.centerspace.net/wp-content/uploads/2010/08/3DFFTWaveMonitor-300x201.jpg 300w, https://www.centerspace.net/wp-content/uploads/2010/08/3DFFTWaveMonitor-1023x688.jpg 1023w, https://www.centerspace.net/wp-content/uploads/2010/08/3DFFTWaveMonitor.jpg 1571w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-2600" class="wp-caption-text">Visualization by Arction, Spectrum computation by CenterSpace</figcaption></figure>
<h3>Package Offer</h3>
<p>Our Arction and CenterSpace <a href="/order/">partnership offer</a> is a bundle of the <strong>Arction LightningChart Ultimate</strong> and the <strong>NMath Suite</strong> for $3395.00 &#8211; that&#8217;s more than a 20% discount. That price includes a one-year subscription on all product extensions and upgrades. Both products are fully compatible with Visual Studio 2008 and 2010.</p>
<figure id="attachment_3258" aria-describedby="caption-attachment-3258" style="width: 309px" class="wp-caption aligncenter"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/08/ArctionPromoImage.png"><img decoding="async" loading="lazy" class="size-full wp-image-3258" title="Arction Images" src="https://www.centerspace.net/blog/wp-content/uploads/2010/08/ArctionPromoImage.png" alt="Arction images" width="309" height="75" srcset="https://www.centerspace.net/wp-content/uploads/2010/08/ArctionPromoImage.png 309w, https://www.centerspace.net/wp-content/uploads/2010/08/ArctionPromoImage-300x72.png 300w" sizes="(max-width: 309px) 100vw, 309px" /></a><figcaption id="caption-attachment-3258" class="wp-caption-text">Arction sample images</figcaption></figure>
<h3>Arction&#8217;s LightningChart Pro</h3>
<p>The LightningChart .NET \ C# chart tool is a complete and full featured real-time signal visualization tool. Here are a few of LightningChart&#8217;s key features.</p>
<ul>
<li>Different X-axis <em>real-time monitoring</em> scrolling modes: Scrolling, sweeping, stepping, oscilloscope style level triggered</li>
<li>Smoothly renders huge amounts of <em>measured data as graphs in real-time</em> &#8211; up to hundreds of millions of new data points per second</li>
<li>Full 64-bit support. Utilizes over 2 GB memory (in 64-bit systems).</li>
<li>Various series types: SampleData, PointLines, FreeformLines, Bars, Bands, Constant lines</li>
<li>Many Y axes/chart: stacked or layered</li>
<li>Automatic scale fitting, grids and divisions</li>
<li>Comprehensive user interface customization</li>
</ul>
<p>For more information please visit the LightningChart <a href="http://arction.com/">product website</a>.</p>
<p>Happy Computing,<br />
Paul</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/nmath-driving-new-high-performance-signal-visualizer">NMath Driving New High Performance Signal Visualizer</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/nmath-driving-new-high-performance-signal-visualizer/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2589</post-id>	</item>
		<item>
		<title>We&#8217;ve Moved to a New Larger Location</title>
		<link>https://www.centerspace.net/weve-moved-2</link>
					<comments>https://www.centerspace.net/weve-moved-2#respond</comments>
		
		<dc:creator><![CDATA[CenterSpace]]></dc:creator>
		<pubDate>Mon, 28 Jun 2010 23:20:37 +0000</pubDate>
				<category><![CDATA[CenterSpace]]></category>
		<category><![CDATA[centerspace news]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=2302</guid>

					<description><![CDATA[<p><img src="https://www.centerspace.net/blog/wp-content/uploads/2010/06/creesbldgsignage-300x180.jpg" alt="Crees Building Signage" title="Crees Building Signage"class="excerpt" /><br />
CenterSpace Software is excited to announce that we have moved to our new Corvallis offices.  " We were busting at the seams so it was time for a move." said CenterSpace CEO Trevor Misfeldt  "Our team is growing so we can expand the functionality of the NMath software and provide more consulting services to our customers."</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/weve-moved-2">We&#8217;ve Moved to a New Larger Location</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>CenterSpace Software is excited to announce that we have moved to our new Corvallis offices.</p>
<p>&#8221; We were busting at the seams so it was time for a move.&#8221; said CenterSpace CEO Trevor Misfeldt  &#8220;Our team is growing so we can expand the functionality of the NMath software and provide more consulting services to our customers.&#8221;</p>
<p>Our new location is located on the third floor of the historic Crees Building in downtown Corvallis Oregon. </p>
<blockquote>
<table>
<tr>
<td>CenterSpace Software </td>
</tr>
<tr>
<td>230 SW 3rd Street, Suite #311</td>
</tr>
<tr>
<td>Corvallis OR, 97333</td>
</tr>
<tr>
<td> +1.541.896.1301</td>
</tr>
</table>
</blockquote>
<figure id="attachment_2316" aria-describedby="caption-attachment-2316" style="width: 350px" class="wp-caption alignright"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/06/creesbldgfrontaddress.jpg"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2010/06/creesbldgfrontaddress.jpg" alt="Crees Building front address" title="Crees Building front address" width="350" class="size-full wp-image-2316" srcset="https://www.centerspace.net/wp-content/uploads/2010/06/creesbldgfrontaddress.jpg 793w, https://www.centerspace.net/wp-content/uploads/2010/06/creesbldgfrontaddress-300x138.jpg 300w" sizes="(max-width: 793px) 100vw, 793px" /></a><figcaption id="caption-attachment-2316" class="wp-caption-text">Art Deco Crees Building Front Address</figcaption></figure>
<p>At the time of its construction in 1926, the Crees Building was the largest commercial building to ever be built in downtown Corvallis and it has played a major role in the commerce of the area.   Visitors can take a ride to our offices on the third floor in the oldest working (we hope!) elevator in Corvallis.<br />
<figure id="attachment_2334" aria-describedby="caption-attachment-2334" style="width: 200px" class="wp-caption alignright"><a href="https://www.centerspace.net/blog/wp-content/uploads/2010/06/creesbldgsignage.jpg"><img decoding="async" src="https://www.centerspace.net/blog/wp-content/uploads/2010/06/creesbldgsignage-300x180.jpg" alt="Crees Building Signage" title="Crees Building Signage" width="200"  class="size-medium wp-image-2334" srcset="https://www.centerspace.net/wp-content/uploads/2010/06/creesbldgsignage-300x180.jpg 300w, https://www.centerspace.net/wp-content/uploads/2010/06/creesbldgsignage.jpg 800w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption id="caption-attachment-2334" class="wp-caption-text">Crees Building Signage</figcaption></figure></p>
<p>&#8220;With almost twice the square footage of our former location, we will not only be able to handle the growth of our staff but also provide a unique environment for our new series of quarterly training classes starting in August 2010.&#8221; says Misfeldt.</p>
<p><strong>About CenterSpace Software</strong><br />
CenterSpace Software is a leading provider of enterprise class numerical component libraries for the .NET platform. Developers worldwide use CenterSpace products to develop .NET financial, engineering, and scientific applications. CenterSpace Software has offices in Corvallis, OR, and can be found on the Internet at <a href="https://www.centerspace.net/">https://www.centerspace.net</a>.</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/weve-moved-2">We&#8217;ve Moved to a New Larger Location</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/weve-moved-2/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2302</post-id>	</item>
		<item>
		<title>July Release of NMath and NMath Stats</title>
		<link>https://www.centerspace.net/july-release-of-nmath-and-nmath-stats</link>
					<comments>https://www.centerspace.net/july-release-of-nmath-and-nmath-stats#comments</comments>
		
		<dc:creator><![CDATA[Paul Shirkey]]></dc:creator>
		<pubDate>Tue, 08 Jun 2010 23:24:36 +0000</pubDate>
				<category><![CDATA[CenterSpace]]></category>
		<category><![CDATA[NMath]]></category>
		<category><![CDATA[NMath Stats]]></category>
		<category><![CDATA[.NET math library]]></category>
		<category><![CDATA[C# math library]]></category>
		<category><![CDATA[NMath release]]></category>
		<category><![CDATA[NMath Stats release]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=2219</guid>

					<description><![CDATA[<p><img src="https://www.centerspace.net/blog/wp-content/uploads/2010/06/centerspace-software-logo.png" alt="CenterSpace" title="CenterSpace Software" class="excerpt" />We are currently working hard on our upcoming July release of NMath and NMath Stats.  This release will add many new features from <em>Runge-Kutta</em> to automatic <em>Peak Finding</em> algorithms as well as address our most frequent support requests.  Developers using our math libraries currently will find the new release build-compatible with the prior release.  Upgrades are provided free of charge to customers with current annual maintenance contracts. </p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/july-release-of-nmath-and-nmath-stats">July Release of NMath and NMath Stats</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We are currently working hard on our upcoming July release of our NMath and NMath Stats C# math libraries.  This release will add many new features from <em>Runge-Kutta</em> to automatic <em>Peak Finding</em> algorithms as well as address our most frequent support requests.  Developers using our math libraries currently will find the new release build-compatible with the prior release.  Upgrades are provided free of charge to customers with current annual maintenance contracts.   Maintenance contracts are available through our <a href="/order/" target="_blank">webstore</a>.</p>
<h3>Pure C#</h3>
<p>Both libraries are now supported by a new pure C# math kernel doing away with our old C++ kernel.  Because we are now a pure .NET assembly, deployment of NMath based applications is simplified by eliminating the Microsoft C++ runtime library dependency.  As with all releases we will be posting our updated performance benchmarks at the time of the release.</p>
<h3>Full Control</h3>
<p>Additionally, our libraries have been re-architected to dynamically link to both native numerical libraries and ( and perhaps more importantly for our customers ) the Intel OMP threading library (<em>libiomp.dll</em>) .  This means that our customers will have complete control over the threading library. In the past, we statically linked in OMP. Now, we are picking up OMP dynamically and thereby avoid collisions between statically and dynamically linked OMP libraries.  In a nutshell, NMath will now play more nicely with libraries from other vendors.</p>
<h3>New Features</h3>
<p>Now for the fun stuff.  The table below summarized the new features in <em>NMath 4.1</em> and <em>NMath Stats 3.2</em>.</p>
<table>
<tbody>
<tr>
<th> Product</th>
<th> Feature</th>
<th align="center"> Summary</th>
</tr>
<tr>
<td>NMath 4.1</td>
<td style="font-weight: bold;">Savitzky-Golay derivatives</td>
<td>Class generates correlation coefficients to compute the smoothed Savizky-Golay derivatives of sampled data.</td>
</tr>
<tr>
<td></td>
<td style="font-weight: bold;">Savitzky-Golay smoothing</td>
<td><a href="/savitzky-golay-smoothing/"> See blog article on SG smoothing </a></td>
</tr>
<tr>
<td></td>
<td style="font-weight: bold;">Peak Finding</td>
<td>Class finds peaks in sampled data using Savitzky-Golay smoothed polynomials and their derivatives.</td>
</tr>
<tr>
<td></td>
<td style="font-weight: bold;">Runge-Kutta ODE solver</td>
<td>Class for solving ODE&#8217;s</td>
</tr>
<tr>
<td></td>
<td style="font-weight: bold;">Bounded function fitting</td>
<td>Class for fitting general nonlinear models with bounds on the parameters. Also see this <a href="/non-linear-curve-fitting/">blog article</a> for code examples of bounded nonlinear curving fitting.</td>
</tr>
<tr>
<td></td>
<td style="font-weight: bold;">Correlated random number generators</td>
<td>Class creates streams of induced correlated random numbers typically for simulation studies using Monte Carlo.</td>
</tr>
<tr>
<td>NMath Stats 3.2</td>
<td style="font-weight: bold;">Johnson System of distributions</td>
<td>The Johnson system of distributions is based on three possible transformations of a normal distribution&#8211;exponential, logistic, and hyperbolic sine&#8211;plus the identity transformation:</p>
<p>X = xi + (lambda * T((z &#8211; gamma) / delta))</p>
<p>where z is a standard normal random variable, xi and lambda are shape parameters, delta is a scale parameter, gamma is a location parameter, and T is the transformation.</td>
</tr>
<tr>
<td></td>
<td style="font-weight: bold;">Kruskal-Wallis rank sum test</td>
<td>The Kruskal-Wallis rank sum test is a non-parametric test for equality of population medians among groups. It is a non-parametric version of the classical one-way ANOVA.</td>
</tr>
<tr>
<td></td>
<td style="font-weight: bold;">Regression statistics for PolynomialLeastSquares</td>
<td>[see below]</td>
</tr>
<tr>
<td></td>
<td style="font-weight: bold;">Regression statistics for OneVariableFunctionFitter</td>
<td>Class provides a variety of regression statistics including the residual sum of squares, R squared, adjusted R squared, F statistic, and others.</td>
</tr>
</tbody>
</table>
<p>I hope you find these new additions to the library useful in your application work.  If you are looking for something specific that isn&#8217;t currently supported in our library, please <a href="mailto: support@centerspace.net">contact us</a>.  We build custom numeric classes for existing and new customers on a regular basis.</p>
<p>Happy Computing,<br />
<em> Paul </em></p>
<p>
<b>Update:</b> In the <a href="/new-versions-of-nmath-libraries-released/">final release</a>, NMath still has a dependency on the Visual C++ 2008 runtime (msvcr90.dll)</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/july-release-of-nmath-and-nmath-stats">July Release of NMath and NMath Stats</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/july-release-of-nmath-and-nmath-stats/feed</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2219</post-id>	</item>
	</channel>
</rss>
