serkany88

Feature Scaling

serkany88 Aktualisiert   
Library "Feature_Scaling"
FS: This library helps you scale your data to certain ranges or standarize, normalize, unit scale or min-max scale your data in your prefered way. Mostly used for normalization purposes.

minmaxscale(source, min, max, length)
  minmaxscale: Min-max normalization scales your data to set minimum and maximum range
  Parameters:
    source
    min
    max
    length
  Returns: res: Data scaled to the set minimum and maximum range

meanscale(source, length)
  meanscale: Mean normalization of your data
  Parameters:
    source
    length
  Returns: res: Mean normalization result of the source

standarize(source, length, biased)
  standarize: Standarization of your data
  Parameters:
    source
    length
    biased
  Returns: res: Standarized data

unitlength(source, length)
  unitlength: Scales your data into overall unit length
  Parameters:
    source
    length
  Returns: res: Your data scaled to the unit length
Versionshinweise:
v2

Updated: Fixed Descriptions
minmaxscale(source, min, max, length)
  minmaxscale Min-max normalization scales your data to set minimum and maximum range
  Parameters:
    source: Source data you want to use
    min: Minimum value you want
    max: Maximum value you want
    length: Length of the data you want taken into account
  Returns: res Data scaled to the set minimum and maximum range

meanscale(source, length)
  meanscale Mean normalization of your data
  Parameters:
    source: Source data you want to use
    length: Length of the data you want taken into account
  Returns: res Mean normalization result of the source

standarize(source, length, biased)
  standarize Standarization of your data
  Parameters:
    source: Source data you want to use
    length: Length of the data you want taken into account
    biased: Whether to do biased calculation while taking standard deviation, default is true
  Returns: res Standarized data

unitlength(source, length)
  unitlength Scales your data into overall unit length
  Parameters:
    source: Source data you want to use
    length: Length of the data you want taken into account
  Returns: res Your data scaled to the unit length

One does not simply win every trade.
Pine Bibliothek

In echter TradingView-Manier hat der Autor diesen Pine-Code als Open-Source-Bibliothek veröffentlicht, so dass andere Pine-Programmierer aus unserer Community ihn weiterverwenden können. Ein Hoch auf den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Publikationen verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie diese Bibliothek nutzen?

Kopieren Sie die folgende Zeile und fügen Sie sie in Ihr Skript ein.