STATISTICA











The COM-base architecture of STATISTICA allows access to its library of functions through any COM-compliant programming language, such as Visual Basic, Visual Basic.NET, C#, and C++. In the case of C++, developers can integrate the Object Model of STATISTICA seamlessly with other libraries such as the Microsoft Foundation Classes, the C++ Standard Library, and the Standard Template Library. For example, the STL's rich set of algorithms and function objects can easily work in unison with the library of objects and functions of STATISTICA within a custom application.

One advantage of using C++ within a custom STATISTICA application is the optimized speed performance associated with C++. Because of the language's low-level capabilities (e.g., the ability to embed inline assembly instructions), custom algorithms written in C++ are extremely efficient. Another advantage of C++ is that it is a compiled language, which offers source code security to keep your custom applications proprietary.

To utilize STATISTICA's library in a C++ application, simply include the *.dll (dynamic link library) or *.exe that you wish to import classes from into your project and import its COM interface. Most compiler implement COM importing differently, so please examine the examples provided along with reviewing your compiler's documentation.

C++ Programs
Delphi Programs
C# Programs
VB.NET Programs


STATISTICA C++ Programs

Memory Statistics

The Memory Statistics example will retrieve the total amounts of memory available (categorized by physical, page file, and virtual memory). Next, descriptive statistics are ran on the two variables (total memory and available memory). Finally, the variables are totaled and the sum is appended to the spreadsheet.

To build the Memory Statistics Project:
1. Place copies of sta_bas.dll and statist.exe (located in the directory where you installed STATISTICA) into the memory statistics project directory.
2. Open MemoryStatistics.dsw in Microsoft Visual C++ 6.0.
3. Build MemoryStatistics.exe.

Save Spreadsheet

The Save Spreadsheet example will open Boston2.sta from the examples directory and export it as a text file into the same directory.

To build the Save Spreadsheet as Text Project:
1. Place a copy of statist.exe (located in the directory where you had installed STATISTICA) into the SaveSpreadsheetAsText project directory.
2. Open SaveSpreadsheetAsText.dsw in Microsoft Visual C++ 6.0.
3. Build SaveSpreadsheetAsText.exe.

STATISTICA Delphi Programs

Pascal STATISTICA Example

This example will open STATISTICA from a main dialog. You then can select a spreadsheet from an Open File dialog and STATISTICA will run descriptive statistics on the dataset.

To build the PascalSTATISTICAExample Project:
1. Open PascalSTATISTICAExample.dpr in Borland Delphi 6.
2. Build PascalSTATISTICAExample.exe.

STATISTCA C# Programs

C# Box and Whiskers example

The C# Box and Whiskers example will prompt for a spreadsheet, open the spreadsheet in a new instance of STATISTICA, and finally create a Box and Whisker plot based on the dataset.

To build the C# Box and Whiskers Project:
1. Open CSharpBoxWhisker.sln in Microsoft Visual Studio.NET.
2. Build CSharpBoxWhisker.exe.

STATISTICA VB.NET Programs

VB.NET CustomStats Example

The VB.NET CustomStats example will open a new instance of STATISTICA, open the dataset Adstudy.sta from your Examples directory, and then run custom VB.NET statistical functions defined in StatsMgr.vb.

To build the VB.NETCustomStats Project:
1. Open VB.NETCustomStats.sln in Microsoft Visual Studio.NET.
2. Build VB.NET.exe.

Back to Top
Request Quote
StatSoft Home Page



[StatSoft]
2300 East 14th Street, Tulsa, OK 74104
Phone: (918) 749-1119; Fax: (918) 749-2217

[StatSoft]e-mail: info@statsoft.com

©Copyright StatSoft, Inc., 1984-2008.
StatSoft, StatSoft logo, and STATISTICA, are trademarks of StatSoft, Inc.