Created
August 4, 2020 01:46
-
-
Save JasonThomasData/3c605ff0b6a4dfb92e205bca17de59fb to your computer and use it in GitHub Desktop.
Functions I will need in R
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
standardNegationInRange = function(selection) { | |
#x_{n}=x_{max}-x_{n}+x_{min} | |
return (max(selection) - selection + min(selection)) | |
} | |
featureScale = function(selection) { | |
#x_{n}=\frac{x_{n}\text{−}x_{min}}{x_{max}\text{−}x_{min}} | |
return ((selection - min(selection))/(max(selection) - min(selection))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment