How to use PCA in c# - c#

I am using Microsoft Visual C# 2010. I am trying to recognize human motion and want to use pca to reduce dimensionality. Can anyone tell me how to add built in class: PrincipalComponentAnalysis.c.

Well, if you're trying to add a C library into C# and use it in the same way you do (for example) System.Windows, you're going to have a lot of difficulty, because that's simply not possible.
If you want to call C DLLs from C#, I'd take a look at this article.

Related

How can i use xNet in C# & is there any alternate of xNet in VB.Net?

can anyone help me with using xNet in C# ?
1st thing is when i put source code into my c# code tab it partially hide the xNet and says no need of this ?
what should i do? and if i convert my code to vb.net then is there any alternate of xNet using in VB.Net ?
thanks for answers
XNet is a library, so just add a reference to the dll in visual studio. Here's a how to guide for that. https://msdn.microsoft.com/en-us/library/wkze6zky.aspx
As you are accessing the code as a dll you don't need to worry about what language it is coded in. vb.net and c# can both access the classes it defines.
If you're trying to convert example code which is written in c# to vb.net or vice versa try using an online conversion tool such as http://converter.telerik.com/
Your description of the issue you're facing with the tabs isn't terribly clear, if you need further help it may pay to upload a screenshot.
Unfortunately, it seems that there is no XNET support in VB.net or C# at the current time from NI. You can see this by going to the following link below. If you search 'Visual' on that webpage you will find 'Microsoft Visual C/C++ 6.0', which is an old version of Visual Studio ~1998.
http://download.ni.com/support/softlib//embedded%20networks/NI-XNET/Driver/16.0/readme.htm
If someone creates a dll for this then it would be possible, but most likely it is best to request this from NI directly. They should have the capability to support this and release an updated version of the NI-XNET driver software so they can support C# and VB.net.
Hope this helps. I guess the easiest way is to code it in LabVIEW or the harder way is to acquire a copy of Visual Studio C/C++ 6.0 (since they are no longer sold or available).

How to use Pocketsphinx with c#?

Good day!
I try to use pocketsphinx with c# ,but do not know how to do that.
Can you give me some links on examples, or piece of code?
Thank you!
I created an example, ready to use, Windows Phone example.
github
probably also usable for Windows 10 / UWP, otherwise I will make it compatible soon myself in the example.
You can use SWIG to generate a C# wrapper for PocketSphinx lib, like it done here:
https://github.com/cmusphinx/pocketsphinx-unity-demo/tree/master/Assets/Pocketsphinx
There is a piece of code that uses generated wrapper:
https://github.com/cmusphinx/pocketsphinx-unity-demo/blob/master/Assets/TestScript.cs

Easiest way to draw tree diagrams?

I want to have a program which generates diagrams for trees, ones looking pretty much like this
It is to be a part of a project I am working on using C#, but if there is a way to make a Python or Javascript do it, that be okay as well. Maybe some C# library, or JavaScript/Python library with parameters I can provide to it ?
The most important thing, regardless of the programming language, is that it be easy to use.
You may want to use pydot, which is an interface to the Graphviz .DOT format visualization software. As outlined in the Graphviz guide, the .DOT format lets you design graphs similar to the one you posted as well as more much more sophisticated ones.
Here's an example from the pydot doc:
import pydot
graph = pydot.Dot('graphname', graph_type='digraph')
subg = pydot.Subgraph('', rank='same')
subg.add_node(pydot.Node('a'))
graph.add_subgraph(subg)
subg.add_node(pydot.Node('b'))
subg.add_node(pydot.Node('c'))
If you're looking at Javascript instead, canviz is a well-respected library that allows you to draw .DOT graphs to browser canvases.
There is a C# wrapper around the Graphviz bindings.
I'm working on a project that generates trees with Graphviz (not in C# though) and it works great.

Can ImageMagickNET be used with c#?

I am making an application for editing images. I tried using ImageMagickNET, but can't figure out how to use the API - or if it even works with C#.
Does anybody know ho to use this API or if it works with c#?
ImageMagick.NET appears to be a managed C++ wrapper around the ImageMagick API. As such it should be usable by any .NET language (VB.NET, C#, even IronPython). I don't have experience using it at all but based on what I see in the code in their CodePlex repo I don't see any reason it wouldn't work.

How to use Git-Media in C#

I am using git (Git Sharp) in a C# application. Now I want to use Git-Media in C#. Are there any tools available which will allow me to use Git-Media in C# applications?
AFAIK, there are NO tools available to use Git-media from C#.
You just need to see if you can interface with the Ruby code from your C# application. Maybe you should rephrase your question to reflect this?

Categories