Class Applications
- Namespace
- AlgorithmsSW
- Assembly
- AlgorithmsSW.dll
Provides algorithms that shows applications of the data structures algorithms in this library.
public static class Applications
- Inheritance
-
Applications
- Inherited Members
Methods
ApplyInterpolationRule<T, TBuffer>(TBuffer, Func<T, T, T>)
public static void ApplyInterpolationRule<T, TBuffer>(this TBuffer gapBuffer, Func<T, T, T> ruleFunc) where TBuffer : IGapBuffer<T>, IRandomAccessList<T>
Parameters
gapBuffer
TBufferruleFunc
Func<T, T, T>
Type Parameters
T
TBuffer
ApplyInterpolationRule<T, TBuffer>(TBuffer, Func<T, T, T>, int)
public static void ApplyInterpolationRule<T, TBuffer>(this TBuffer gapBuffer, Func<T, T, T> ruleFunc, int times) where TBuffer : IGapBuffer<T>, IRandomAccessList<T>
Parameters
Type Parameters
T
TBuffer
AreDelimitersBalanced(string)
[ExerciseReference(1, 3, 4)]
public static bool AreDelimitersBalanced(string s)
Parameters
s
string
Returns
Filter<TIn, TOut>(IEnumerable<TIn>, Func<IEnumerable<TIn>, TOut>, int)
public static IEnumerable<TOut> Filter<TIn, TOut>(IEnumerable<TIn> list, Func<IEnumerable<TIn>, TOut> filter, int windowSize)
Parameters
list
IEnumerable<TIn>filter
Func<IEnumerable<TIn>, TOut>windowSize
int
Returns
- IEnumerable<TOut>
Type Parameters
TIn
TOut
Filter<TIn, TOut>(IEnumerable<TIn>, Func<TIn, TIn, TIn, TOut>)
public static IEnumerable<TOut> Filter<TIn, TOut>(IEnumerable<TIn> list, Func<TIn, TIn, TIn, TOut> filter)
Parameters
list
IEnumerable<TIn>filter
Func<TIn, TIn, TIn, TOut>
Returns
- IEnumerable<TOut>
Type Parameters
TIn
TOut
Filter<TIn, TOut>(IEnumerable<TIn>, Func<TIn, TIn, TOut>)
public static IEnumerable<TOut> Filter<TIn, TOut>(IEnumerable<TIn> list, Func<TIn, TIn, TOut> filter)
Parameters
list
IEnumerable<TIn>filter
Func<TIn, TIn, TOut>
Returns
- IEnumerable<TOut>
Type Parameters
TIn
TOut
GetFibonacci(int)
public static int GetFibonacci(int n)
Parameters
n
int
Returns
GetFibonacci_Recursive(int)
public static int GetFibonacci_Recursive(int n)
Parameters
n
int
Returns
GetGeneralizedFibonacci(int, params int[])
public static int GetGeneralizedFibonacci(int n, params int[] initialTerms)
Parameters
Returns
GetLucas(int)
public static int GetLucas(int n)
Parameters
n
int
Returns
Interpolate<T, TBuffer>(TBuffer, Func<T, T, T>, int)
public static IEnumerable<IEnumerable<T>> Interpolate<T, TBuffer>(this TBuffer gapBuffer, Func<T, T, T> ruleFunc, int times) where TBuffer : IGapBuffer<T>, IRandomAccessList<T>
Parameters
Returns
Type Parameters
T
TBuffer
Median(float, float, float)
public static float Median(float a, float b, float c)
Parameters
Returns
Substitute<T>(T[], (T input, T[] output)[], int)
public static IEnumerable<T> Substitute<T>(this T[] axiom, (T input, T[] output)[] rules, int iterationCount)
Parameters
Returns
- IEnumerable<T>
Type Parameters
T
Substitute<T, TBuffer>(TBuffer, (T input, T[] output)[])
public static void Substitute<T, TBuffer>(this TBuffer buffer, (T input, T[] output)[] rules) where TBuffer : IGapBuffer<T>, IRandomAccessList<T>
Parameters
Type Parameters
T
TBuffer