MlbendPreprocess.scale_row_go: def of mlbend-preprocess@0.1.0.0 Import: import mlbend-preprocess@0.1.0.0/main.bend as MlbendPreprocess Lines 192-209 of mlbend-preprocess@0.1.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=mlbend-preprocess@0.1.0.0/main.bend&start_line=192&end_line=209 import Base # One row scaled column by column, cell by cell. def scale_row_go(+row: List<&2, F32>, mins: List<&2, F32>, maxs: List<&2, F32>, +acc: List<&2, F32>) -> List<&2, F32>: match row: case Nil{}: acc case Con{h, t}: match mins: case Nil{}: acc case Con{+m, ms}: match maxs: case Nil{}: acc case Con{mx, mxs}: scale_row_go(t, ms, mxs, List.append(&2, F32, acc, Con{((h - m : F32) / F32.max((mx - m : F32), 0.00000001) : F32), Nil{}})) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.max https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append