RicardoSantos

FunctionPatternFrequency

Library "FunctionPatternFrequency"
Counts the word or integer number pattern frequency on a array.
reference:
rosettacode.org/wiki/Word_frequency

count(pattern)
  counts the number a pattern is repeated.
  Parameters:
    pattern: : array<string> : array with patterns to be counted.
  Returns:
    array<string> : list of unique patterns.
    array<int> : list of counters per pattern.
  usage:
    count(array.from('a','b','c','a','b','a'))

count(pattern)
  counts the number a pattern is repeated.
  Parameters:
    pattern: : array<int> : array with patterns to be counted.
  Returns:
    array<int> : list of unique patterns.
    array<int> : list of counters per pattern.
  usage:
    count(array.from(1,2,3,1,2,1))
ไลบรารีไพน์

จิตวิญญาณที่แท้จริงของ TradingView ผู้เขียนได้ตีพิมพ์รหัส Pine นี้เป็นไลบรารีโอเพนซอร์ซเพื่อให้โปรแกรมเมอร์คนอื่น ๆ จากชุมชนของเราสามารถนำไปใช้ซ้ำได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ไลบรารีนี้เป็นการส่วนตัวหรือในสิ่งพิมพ์โอเพนซอร์สอื่น ๆ แต่นำรหัสนี้มาใช้ซ้ำในสิ่งพิมพ์จะถูกควบคุมโดย กฎระเบียบการใช้งาน

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการใช้ไลบรารีนี้หรือไม่?

คัดลอกข้อความไปยังคลิปบอร์ดแล้ววางลงในสคริปต์ของคุณ