This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// There currently is no method in C# to take the square root of an Int128. | |
/// However, we occasionally need to do this. This method finds the integer | |
/// component of the square root - as if you did a Floor function on the | |
/// actual square root. | |
/// </summary> | |
/// <param name="num"></param> | |
/// <returns></returns> | |
internal static Int128 SquareRoot(Int128 num) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
namespace LMOpt | |
{ | |
/// <summary> | |
/// Class Levenberg-Marquadt Optimization. This class includes functions to run this optimization method. | |
/// It is an abstract class, so you must inherit it in A new class. That new class must have the following: | |
/// 1. A constructor that calls the base constructor |