PINE LIBRARY
업데이트됨 ArrayStatistics

Library "ArrayStatistics"
Statistic Functions using arrays.
rms(sample) Root Mean Squared
Parameters:
Returns: float
skewness_pearson1(sample) Pearson's 1st Coefficient of Skewness.
Parameters:
Returns: float
skewness_pearson2(sample) Pearson's 2nd Coefficient of Skewness.
Parameters:
Returns: float
pearsonr(sample_a, sample_b) Pearson correlation coefficient measures the linear relationship between two datasets.
Parameters:
Returns: float p
kurtosis(sample) Kurtosis of distribution.
Parameters:
Returns: float
range_int(sample, percent) Get range around median containing specified percentage of values.
Parameters:
Returns: tuple with [int, int], Returns the range which containes specifies percentage of values.
Statistic Functions using arrays.
rms(sample) Root Mean Squared
Parameters:
- sample: float array, data sample points.
Returns: float
skewness_pearson1(sample) Pearson's 1st Coefficient of Skewness.
Parameters:
- sample: float array, data sample.
Returns: float
skewness_pearson2(sample) Pearson's 2nd Coefficient of Skewness.
Parameters:
- sample: float array, data sample.
Returns: float
pearsonr(sample_a, sample_b) Pearson correlation coefficient measures the linear relationship between two datasets.
Parameters:
- sample_a: float array, sample with data.
- sample_b: float array, sample with data.
Returns: float p
kurtosis(sample) Kurtosis of distribution.
Parameters:
- sample: float array, data sample.
Returns: float
range_int(sample, percent) Get range around median containing specified percentage of values.
Parameters:
- sample: int array, Histogram array.
- percent: float, Values percentage around median.
Returns: tuple with [int, int], Returns the range which containes specifies percentage of values.
릴리즈 노트
added new function:average_weighted(sample, weights) Computes a weighted average (the mean, where each value is weighted by its relative importance).
Parameters:
sample: float array, data sample.
weights: float array, weights to apply to samples.
Returns: float
릴리즈 노트
v3Updated: display examples on chart.
Added:
arithmetic_geometric_mean_simple(value_a, value_b, tolerance_value) Calculate the arithmetic-geometric mean of two numbers (_value_a, _value_b).
Parameters:
value_a: float, number value.
value_b: float, number value.
tolerance_value: float, number value, default=1e-12.
Returns: float
arithmetic_geometric_mean(sample, tolerance_value) Computes the arithmetic geometric mean of a sequence of values.
Parameters:
sample: float array, data sample.
tolerance_value: float, number value, default=1e-12.
Returns: float
릴리즈 노트
v4Added:
zscore_simple(value, mean, deviation) Computes the simple version of the z-score formula.
Parameters:
value: float, data value.
mean: float, data mean.
deviation: float, the standard deviation of the data.
Returns: float.
zscore(sample) Computes the z-score of a data sample values.
Parameters:
sample: float array, data values.
Returns: float array.
릴리즈 노트
v5Updated:
arithmetic_geometric_mean() was not computed correctly, thank you, InvestCHK for pointing it out.
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.