Least Squares C# library [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking to perform a polynomial least squares regression and am looking for a C# library to do the calculations for me.
I pass in the data points and the degree of polynomal (2nd order, 3rd order, etc) and it returns either the C0, C1, C2 etc. constant values or the calculated values "predictions".
Note: I am using Least Squares to create some forecasting reports for disk usage, database size and table size.

Here is a link for C# code on to do exactly this: http://www.trentfguidry.net/post/2009/08/01/Linear-Regression-of-Polynomial-Coefficients.aspx
Good luck!
Edit: Apparently the above link is broken. I made another solution awhile back: http://procbits.com/2011/05/02/linear-regression-in-c-sharp-least-squares/

In the general case you want an "optimizer" or "mimimizer". See http://en.wikipedia.org/wiki/Optimization_(mathematics)#Solvers for some exmples. I see that the first link (http://en.wikipedia.org/wiki/IMSL_Numerical_Libraries) claims to have c# support.
Edit: For the limited use that you propose (linear or quadratic polynomials), you could just go to any copy of Numerical Recipies, grab a straight ahead implementation, and translate to your language. A general minimizer is overkill.
But note, also, that polynomials may be poor predictors.

You can check library form ALGLIB under GPL licence 2.0. They have source code for C#, C++,...
http://www.alglib.net/interpolation/leastsquares.php

You may want to check out alglib. It is in C++ instead of C#, but you might be able to write a wrapper over it.

Related

Implementing Lua for C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've built a robust system that has many core functions that might actually get mess to use if I keep on expanding the code - therefore I decided to implement a scripting language and ability for program to read scripts from external files.
My first idea was to use C# by default, but then I've remembered how easy and readable Lua was, so I went with that - sadly, I can't find a simple yet effective library that would allow me to incorporate lua into my software.
tl;dr — is there a simple library one could use to implement lua and thus make usage of software built-in functions way easier? What are your thoughts and opinions on that?
First, there's MoonSharp.
I did experiments with it a while ago. Ultimately, I found it unsuitable for my needs, but it was straightforward to make use of.
Edit: dug up my GitHub repo where I tried this out.

library in c# to compose an image using layers/masks/filters [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am looking for some sort of API similar to Photoshop functionality, I need to create an image using layers/masks/filters programmatically.
An example: I know how to make a nice button in Photoshop, there is a sequence of simple actions. What I want is to automate this process and generate an image of the button on the fly with a few input parameters.
I think I am not the first one who came up with such idea, there must be some library out there that does this thing. Unfortunately I cannot find anything.
Thanks!
You failed to mention if the library needs to be free/open source or if commercial libraries are acceptable but one of the best out there is GdPicture.NET. I doubt you'll find anything free that is remotely comprehensive but a good free one is Filters library (LGPL).
i don't think there is an API like this
but there is free open source software which is Paint.net
get it here
http://www.getpaint.net/download.html
see source code here
http://www.afterdawn.com/software/source_codes/paint.net.cfm
hope it helped
GDI+ in .NET?
Although I haven't used them you could take a look at:
Emgu CV: http://www.emgu.com/wiki/index.php/Emgu_CV
or OpenCvSharp : http://code.google.com/p/opencvsharp/
ImageMagic have layers support http://www.imagemagick.org/Usage/layers/ and there is Net wrapper

Free image analysis libraries? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for some Free (preferably LGPL'd) image analysis/comparison libraries.
The most important thing they should be able to do, is compare two different images and say if they're similar, with adjustable sensibility (i.e the higher the sensibility the more they have to look like each other to get a positive result)
I'm thinking either C/++/# or eventually Python.
So far the only solution I've come across is OpenCV, which is under the BSD license. I have yet to study how much of what I need is already implemented in the library, and what I may need to write myself, but I would really like to hear some other options before I start work on my project, so any opinions are welcome.
Comparing if two images are "similar" is an extremely hard, research-class problem. The approach you'd use will depend heavily on the types of similarities/differences that you are expecting between your images.
It will be hard to find something that works off-the-shelf, unless your comparison requirements are very specific.
Related questions that might be helpful:
Image comparison - fast algorithm
Image comparison algorithm
I know several people who have used or are using OpenCV. They seem to be very satisfied with what it can do and how easy it is to use. And from the problem you have described, OpenCV surely has that feature, and much more. I don't know of any library that compares to it. As for the BSD license, don't blame people who make source code available for free for not letting you make money off of it.

.NET Geometry library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm starting a new project in .NET which will require some geometry algorithms, such as:
checking if a point is inside a polygon
bezier curves
line intersections, etc.
I've found some libraries, however, they are paid/expensive, these include:
G# - http://www.ceometric.com/store.html
DigitalRune Geometry - http://www.digitalrune.com/Products/Geometry/Overview.aspx
NLIB - http://www.smlib.com/nlib.html
sgCore - http://www.geometros.com/sgcore/index.htm
These do what I need and much more, which makes me spend too much money on something that won't get used so much.
I've found some open source projects:
MATH.NET
alglib
anti-grain (C# bindings/port)
But these do less than I need, however, they're easy to find when you look on google. After some time searching, I've found this library:
Tektosyne (http://www.kynosarges.de/Tektosyne.html)
Which does most of what I need. It is also free of charge and is provided "AS-IS". Which is good.
However, if you search google for "Tektosyne", you find very few results. So my question is (for those who have experience with some "advanced" usage of geometries in c# of StackOverflow):
Do you have another libraries to recommend or why is this library not "popular"?
Have you looked at this?
github.com/DotSpatial/DotSpatial
Or
NetTopologySuite https://github.com/NetTopologySuite/NetTopologySuite
I assume you're looking for something for WinForms. If you haven't looked into WPF yet, the functionality that you mentioned is all available there. Plus you could always host a WPF Control in a WinForms program.
We are using sgCore in our 3D programs. Beautiful library. We are purchased full sourcescodes - very clear code inside.

Do you have any tips for C# Minification? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I need to minify some C# code in a handful of Silverlight .cs and .xmal files. What are your tips for maintaining one code base and running a "tool" to generate minified code for a project?
Are there any tools (like Resharper) that will do this? If not fully, partially or assist in some way...
EDIT: I realize that there is no need for C# minification. This is an exercise that I'm doing that does not make sense on the face of it. (This is not homework.)
How about a source-code obfuscator? They generally abbreviate names, etc - and certainly remove white space.
For example, here, with demo here (although you'd probably want to disable the string encoding if possible). Note that this isn't a direct recommendation: this is just the first hit I got for C# code obfuscator.
Is that necessary? It was my understanding that the compiled .Net assembly would be sent across the wire, not the C# (or whatever language) source code.
Here are two "Lessons Learned" posts from other 10k entrants:
Thoughts on the MIX 10K challenge
MIX09 10K Smart Coding Challenge

Categories

Resources