package Ġorg . deep learning 4 j . kotlin . ndarray Ċ Ċ import Ġorg . nd 4 j . linalg . api . ndarray . IND Array Ċ import Ġorg . nd 4 j . linalg . indexing . Boolean Indexing Ċ import Ġorg . nd 4 j . linalg . indexing . conditions . GreaterThan Ċ import Ġorg . nd 4 j . linalg . indexing . conditions . LessThan Ċ Ċ fun ĠIND Array . coerce At Most ( max Value : ĠDouble ) Ġ= Ġdup (). also Ġ{ ĠBoolean Indexing . replace Where ( it , ĠmaxValue , ĠG reater Than ( max Value )) Ġ} Ċ fun ĠIND Array . coerce At Least ( min Value : ĠDouble ) Ġ= Ġdup (). also Ġ{ ĠBoolean Indexing . replace Where ( it , Ġmin Value , ĠLess Than ( min Value )) Ġ} Ċ fun ĠIND Array . coerce In ( min Value : ĠDouble , ĠmaxValue : ĠDouble ) Ġ= Ġdup (). also Ġ{ Ċ ĉ Boolean Indexing . replace Where ( it , Ġmin Value , ĠLess Than ( min Value )) Ċ ĉ Boolean Indexing . replace Where ( it , ĠmaxValue , ĠG reater Than ( max Value )) Ċ } Ċ