Data Science and Analytics for Verse V2
5698 Views
-
# DSAV (Data Science & Analytics for Verse) module DSAV<public> := module: # NOTE: Project DSAV uses the Matrices module made by @topo-ology. This required module can be found here: # https://dev.epicgames.com/community/snippets/bO9r/fortnite-matrices using { Matrices } using { /UnrealEngine.com/Temporary/SpatialMath } using { /Verse.org/Random } <# DATA CLEANING #> # Returns true if the given array contains a missing value, meaning either NaN or unset optional entries. (Column:[]?float).HasNA<public>()<transacts>:logic= var Result : logic = false for (Index := 0..Column.Length - 1): if (FilledEntry := Column[Index]?): if (FilledEntry = NaN): set Result = true else: set Result = true Result # Returns true if the given matrix contains a NaN entry. (InMatrix:Matrix).HasNA<public>()<transacts>:logic= var Result : logic = false for (Row := 0..InMatrix.Rows - 1): for (Col := 0..InMatrix.Cols - 1): if (Entry := InMatrix.Rep[Row][Col], Entry = NaN): set Result = true Result
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.