<?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>Corporate Archives - CenterSpace</title>
	<atom:link href="https://www.centerspace.net/category/corporate/feed" rel="self" type="application/rss+xml" />
	<link>https://www.centerspace.net/category/corporate</link>
	<description>.NET numerical class libraries</description>
	<lastBuildDate>Tue, 07 Feb 2023 21:27:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
<site xmlns="com-wordpress:feed-additions:1">104092929</site>	<item>
		<title>Mono versions of NMath now available</title>
		<link>https://www.centerspace.net/mono-versions-of-nmath-now-available</link>
					<comments>https://www.centerspace.net/mono-versions-of-nmath-now-available#comments</comments>
		
		<dc:creator><![CDATA[Trevor Misfeldt]]></dc:creator>
		<pubDate>Wed, 08 Feb 2012 21:26:30 +0000</pubDate>
				<category><![CDATA[Corporate]]></category>
		<category><![CDATA[NMath]]></category>
		<category><![CDATA[NMath Stats]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[mono math libraries]]></category>
		<category><![CDATA[mono nmath]]></category>
		<category><![CDATA[mono nmath stats]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/uncategorized/mono-versions-of-nmath-now-available/</guid>

					<description><![CDATA[<p>Due to popular request, our NMath and NMathStats libraries are now available for use in developing applications on Mono. The Mono versions include all of the same features as the .NET/Windows libraries, with native code compiled for Linux and Mac OS X. Access to the Mono version is included at no additional charge with the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/mono-versions-of-nmath-now-available">Mono versions of NMath now available</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Due to popular request, our <a href="/nmath/"><strong>NMath</strong></a> and NMathStats libraries are now available for use in developing applications on Mono. The Mono versions include all of the same features as the .NET/Windows libraries, with native code compiled for Linux and Mac OS X.</p>
<p>Access to the Mono version is included at no additional charge with the purchase of a .NET (Windows) license.  All customers with a current maintenance agreement can obtain the Mono version by visiting <a href="/upgrades/">http://centerspace.net/downloads/upgrades/</a> and entering your product key.  (If you need to renew your maintenance agreement, you can do so at <a href="/order/">https://www.centerspace.net/order/how-to-order/</a>.)</p>
<p>If you are interested in evaluating NMath on Mono, we offer a <a href="/trial-version/">free trial version</a>, distributed in binary form only for a 30-day evaluation period.</p>
<p>Please let us know what you think, and thanks, as always, for your business.</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/mono-versions-of-nmath-now-available">Mono versions of NMath now available</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/mono-versions-of-nmath-now-available/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3697</post-id>	</item>
		<item>
		<title>Speaking at SC11</title>
		<link>https://www.centerspace.net/speaking-at-sc11</link>
					<comments>https://www.centerspace.net/speaking-at-sc11#respond</comments>
		
		<dc:creator><![CDATA[Trevor Misfeldt]]></dc:creator>
		<pubDate>Mon, 14 Nov 2011 20:26:17 +0000</pubDate>
				<category><![CDATA[Corporate]]></category>
		<category><![CDATA[SC11]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/uncategorized/speaking-at-sc11/</guid>

					<description><![CDATA[<p>CenterSpace is attending the SC11 conference this week in Seattle. On Tuesday, November 15 at 3:45 pm in the Intel booth, I will be presenting, “Numerical Programming in Managed Code: This Might Just Work.”&#160; Please come join us! &#160; Whether or not you make it to the presentation, please drop us a line if you’re [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/speaking-at-sc11">Speaking at SC11</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>CenterSpace is attending the <a href="http://sc11.supercomputing.org/" target="_blank">SC11 conference</a> this week in Seattle. On Tuesday, November 15 at 3:45 pm in the <a href="http://www.intel.com/content/www/us/en/homepage.html" target="_blank">Intel</a> booth, I will be presenting, “Numerical Programming in Managed Code: This Might Just Work.”&#160; Please come join us!</p>
<p>&#160;</p>
<p>Whether or not you make it to the presentation, please <a href="mailto:info@centerspace.net" target="_blank">drop us a line</a> if you’re attending SC11 – it’s always great to catch up with our users in person!</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/speaking-at-sc11">Speaking at SC11</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/speaking-at-sc11/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3636</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>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>Nevron Partnership</title>
		<link>https://www.centerspace.net/nevron-partnership</link>
					<comments>https://www.centerspace.net/nevron-partnership#respond</comments>
		
		<dc:creator><![CDATA[Paul Shirkey]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 16:00:57 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Corporate]]></category>
		<category><![CDATA[charting with NMath]]></category>
		<category><![CDATA[data smoothing]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[linear regression]]></category>
		<category><![CDATA[math charts]]></category>
		<category><![CDATA[Nevron Partnership]]></category>
		<category><![CDATA[polyfit]]></category>
		<category><![CDATA[process control charts]]></category>
		<guid isPermaLink="false">http://www.centerspace.net/blog/?p=1903</guid>

					<description><![CDATA[<p><img src="https://www.centerspace.net/blog/wp-content/uploads/2010/03/Nevron_ex1_polyfit-300x216.png" alt="" title="Fitting a polynomial to some sample data."  class="excerpt" />  All of us at CenterSpace software are proud to announce a partnership with <a href="http://www.nevron.com">Nevron</a>, leaders in data visualization.   Nevron builds .NET components which enable developers to quickly build clean, enterprise quality, user interfaces incorporating well rendered maps, gauges, diagrams, or charts.  Check out our <a href="https://www.centerspace.net/partners/nevron" >partnership page</a> for more information and free examples.</p>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/nevron-partnership">Nevron Partnership</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>All of us at CenterSpace software are proud to announce a partnership with <a href="https://www.nevron.com">Nevron</a>, leaders in data visualization.  <img decoding="async" loading="lazy" src="https://www.centerspace.net/blog/wp-content/uploads/2010/03/NevronChartArt.jpg" alt="Nevron Chart Visualizations" title="NevronChartArt" width="308" height="239" class="alignright size-full wp-image-1905" srcset="https://www.centerspace.net/wp-content/uploads/2010/03/NevronChartArt.jpg 308w, https://www.centerspace.net/wp-content/uploads/2010/03/NevronChartArt-300x232.jpg 300w" sizes="(max-width: 308px) 100vw, 308px" /> Nevron builds .NET components which enable developers to quickly build clean, enterprise quality, user interfaces incorporating well rendered maps, gauges, diagrams, or charts.  Nevron has built it&#8217;s visualization framework with the developer in mind and has created components that are powerful, yet quick to pick up and work with.  </p>
<h3> Free Project Examples </h3>
<p>As part of of this partnership our software engineers are working together to develop a series of example applications to help our customers quickly become productive using our tool set.  Our first example demonstrates how to use the Nevron .NET chart component with some of NMath Stat&#8217;s fundamental capabilities: regression and prediction, polynomial curve fitting, and data smoothing.  <a href="https://www.centerspace.net/blog/wp-content/uploads/2010/03/Nevron_ex1_polyfit.png"><img decoding="async" loading="lazy" src="https://www.centerspace.net/blog/wp-content/uploads/2010/03/Nevron_ex1_polyfit-300x216.png" alt="" title="Fitting a polynomial to some sample data." width="300" height="216" class="alignleft size-medium wp-image-1907" srcset="https://www.centerspace.net/wp-content/uploads/2010/03/Nevron_ex1_polyfit-300x216.png 300w, https://www.centerspace.net/wp-content/uploads/2010/03/Nevron_ex1_polyfit.png 788w" sizes="(max-width: 300px) 100vw, 300px" /></a> To build and run this example, you&#8217;ll need to download this VS8 project, along with evaluation copies of the CenterSpace NMath Suite and the Nevron .NET Chart package. All of this is freely available from our <a href="/nevron-partnership/">partnership page</a>.</p>
<p>As I mentioned this is the first in a series of examples that we will be jointly developing.  Our next example application is in the planning stages, and will cover the building of common charts in statistical process control.  Statistical process control is employed across many industries ranging from manufacturing to medicine and has been an area of interest by customers of both companies.  We&#8217;ll post up a blog article about the example once it&#8217;s finished and you&#8217;ll see a tweet about it if you are <a href="https://twitter.com/CenterSpaceSoft">following us</a>.  </p>
<p>If you have an idea for an example using Nevon&#8217;s and CenterSpace&#8217;s tools together, which would help speed along your own project, leave a comment or drop us an email.   We just may cook it up!</p>
<h3> Discount Bundle </h3>
<p>As part of our partnership with Nevron, we are able to offer a substantial discount on package licenses.  If you are interested, please email our <a href="mailto:sales@centerspace.net">sales</a> staff and request the Nevron partnership discount.</p>
<p>Thanks for reading,</p>
<p><em>-The CenterSpace Team</em><br />
<br />
<b> Resources </b></p>
<ul>
<li>CenterSpace partnership information <a href="/nevron-partnership/">partnership page</a>.
<li>Nevron technology partnership information <a href="https://www.nevron.com/company-partners-technology-partners.aspx">page</a>.
<li>Nevron&#8217;s .NET Chart <a href="https://www.nevron.com/products-dot-net-chart-overview.aspx"> home page</a>.
</ul>
<p>The post <a rel="nofollow" href="https://www.centerspace.net/nevron-partnership">Nevron Partnership</a> appeared first on <a rel="nofollow" href="https://www.centerspace.net">CenterSpace</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.centerspace.net/nevron-partnership/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1903</post-id>	</item>
	</channel>
</rss>
