Skip to content

Commit

Permalink
files ready for scloud online
Browse files Browse the repository at this point in the history
  • Loading branch information
chrdek committed Dec 5, 2023
1 parent 19b6b07 commit 26172c6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions DataCalc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ public static IQueryable<IEnumerable<T>> CollEvenLength<T>(this IQueryable<IEnum
/// Retrieves a Queryable of string based on IEnumerable of string data types that equal
/// to a current hamming value of N and input type str2 that are checked against.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="str1">The leftmost string part to compare with</param>
/// <param name="str2">The rightmost string part to compare against</param>
/// <param name="distCheck">The hamming value to check per string comparison</param>
Expand Down Expand Up @@ -296,7 +295,7 @@ public static IQueryable<int[,]> SelectIntMatrix(this IQueryable<string> source,
Expression<Func<string, int[,]>> transfMap = str => ConvertTo2Dim(new[] { str }.AsQueryable(),

(int)Char.GetNumericValue(str.Length.ToString()[0]),
(int)(str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0])
(str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0])
);

//default filtering part, returns full set of values as 2dim array nxm
Expand Down Expand Up @@ -358,7 +357,7 @@ public static IQueryable<int[,]> SelectIntMatrix(this IQueryable<string> source,
Expression<Func<string, int[,]>> transfMap = str => ConvertTo2Dim(new[] { str }.AsQueryable(),

(int)Char.GetNumericValue(str.Length.ToString()[0]),
(int)(str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0])
(str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0])
);


Expand All @@ -377,7 +376,7 @@ public static IQueryable<int[,]> SelectIntMatrix(this IQueryable<string> source,
.Select((_, index) => char.IsDigit(str[index]) ? (int)char.GetNumericValue(str[index]) : 0)
.ToArray()
.To2DArray(1, str.Length)
: ConvertTo2Dim(new[] { str }.AsQueryable(), (int)Char.GetNumericValue(str.Length.ToString()[0]), (int)(str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0]));
: ConvertTo2Dim(new[] { str }.AsQueryable(), (int)Char.GetNumericValue(str.Length.ToString()[0]), (str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0]));

var executedSource = source.Select(changeStr);
var resultArrays = executedSource.Select(transfMap.Compile());
Expand Down

0 comments on commit 26172c6

Please sign in to comment.