Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Creating release 2.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarsouza committed Jan 5, 2014
1 parent a90eff4 commit 51442ea
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 19 deletions.
20 changes: 10 additions & 10 deletions README.txt
@@ -1,16 +1,16 @@
The Accord.NET Framework
http://accord-net.github.io
http://accord-framework.net


The Accord.NET Framework provides machine learning, mathematics, statistics,
computer vision, computer audition, and several scientific computing related
methods and techniques to .NET. The project extends the popular AForge.NET
Framework providing a more complete scientific computing environment.

This GitHub repository will be the future official home of the project as soon
as the release 2.10 is completed. For the time being, commits are being simply
replicated from the Google Code repository; but the plan is to do the inverse
and later keep the Subversion repository just as a replication of Git.
This GitHub repository is the official home of the project after release 2.10
was finished. New releases will only be made available on this repository, but
the code will also bt replicated in the Google Code repository for those who
still would like to use the SVN repository instead.

- http://code.google.com/p/accord/

Expand All @@ -23,10 +23,10 @@
https://code.google.com/p/aforge/downloads/list

2) Download the Accord.NET Framework from
https://code.google.com/p/accord/downloads/list
https://github.com/accord-net/framework/releases

3) Install both frameworks as described in the Getting Started Guide
https://code.google.com/p/accord/wiki/GettingStarted?tm=6
http://accord-framework.net/get-started.html


4) If you used the automated installers, the framework binaries
Expand All @@ -41,15 +41,15 @@

You can open the Samples.sln solution on Visual Studio to check
the sample applications for examples. Complete documentation is
also available online
also available online at

http://accord-net.github.io/docs/Index.html
http://accord-framework.net/docs/Index.html



Obtaining support and documentation
-----------------------------------

1) Check the reference manual at: http://accord-net.github.io/docs/Index.html
1) Check the reference manual at: http://accord-framework.net/docs/Index.html
2) Visit the discussion group at: https://groups.google.com/forum/#!forum/accord-net

2 changes: 1 addition & 1 deletion Setup/NuGet/Build.cmd
Expand Up @@ -11,7 +11,7 @@ echo.
timeout /T 5

:: Set version info
set version=2.11.0.0
set version=2.12.0.0
set output=..\bin\nupkg

:: Create output directory
Expand Down
49 changes: 45 additions & 4 deletions Sources/Accord.Core/Compatibility/AggregateException.cs
Expand Up @@ -23,19 +23,60 @@
#if NET35
namespace System
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

/// <summary>
/// Minimum AggregateException implementation for .NET 3.5 to
/// make Accord.NET work. This is not a complete implementation.
/// </summary>
///
[Serializable]
public class AggregateException : Exception
{

/// <summary>
/// Initializes a new instance of the <see cref="AggregateException"/> class.
/// </summary>
///
public AggregateException() { }

/// <summary>
/// Initializes a new instance of the <see cref="AggregateException"/> class.
/// </summary>
///
/// <param name="message">Message providing some additional information.</param>
///
public AggregateException(string message) :
base(message) { }

/// <summary>
/// Initializes a new instance of the <see cref="AggregateException"/> class.
/// </summary>
///
/// <param name="message">Message providing some additional information.</param>
/// <param name="innerException">The exception that is the cause of the current exception.</param>
///
public AggregateException(string message, Exception innerException) :
base(message, innerException) { }


/// <summary>
/// Initializes a new instance of the <see cref="AggregateException"/> class.
/// </summary>
///
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/>
/// that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/>
/// that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">
/// The <paramref name="info"/> parameter is null.
/// </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">
/// The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0).
/// </exception>
///
protected AggregateException(SerializationInfo info, StreamingContext context) :
base(info, context) { }

}
}
Expand Down
17 changes: 17 additions & 0 deletions Sources/Accord.Core/Compatibility/ISet.cs
Expand Up @@ -27,15 +27,32 @@ namespace System.Collections.Generic
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

/// <summary>
/// Minimum ISet implementation for .NET 3.5 to
/// make Accord.NET work. This is not a complete implementation.
/// </summary>
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")] [Serializable]
public class ISet<T> : HashSet<T>
{
/// <summary>
/// Initializes a new instance of the <see cref="ISet&lt;T&gt;"/> class.
/// </summary>
///
public ISet()
: base() { }

/// <summary>
/// Initializes a new instance of the <see cref="ISet&lt;T&gt;"/> class.
/// </summary>
///
/// <param name="info">The info.</param>
/// <param name="context">The context.</param>
///
protected ISet(SerializationInfo info, StreamingContext context)
: base(info, context) { }
}
}
#endif
1 change: 1 addition & 0 deletions Sources/Accord.Core/Structures/ReadOnlyDictionary.cs
Expand Up @@ -38,6 +38,7 @@ namespace Accord
/// <typeparam name="TKey">The types of the keys in the dictionary.</typeparam>
/// <typeparam name="TValue">The type of values in the dictionary.</typeparam>
///
[Serializable]
public class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue>
{

Expand Down
Expand Up @@ -238,10 +238,7 @@ private double compute(TObservation[] observations)
TObservation[] observations)
{
double logLikelihood = 0.0;

object syncObj = new object();



#if NET35
for (int i = 0; i < observations.Length; i++)
{
Expand All @@ -256,6 +253,7 @@ private double compute(TObservation[] observations)
logLikelihood += Math.Log(sum);
}
#else
object syncObj = new object();

Parallel.For(0, observations.Length,

Expand Down

0 comments on commit 51442ea

Please sign in to comment.