zivaSignalAnalysisExt icon

zivaSignalAnalysisExt

Allows you to filter out noise, only show noise, or plot duration vs frequency of events in history grids.
zivaSignalAnalysisExt

Registered StackHub users may elect to receive email notifications whenever a new package version is released.

There are 0 watchers.

v1.5.0

Overview

Welcome to SkySpark's Signal Analysis Extension!

zivaFourier(hisGrid, filter: x => x, theChartType: "bar")

Plot duration vs frequency

  • Works on booleans or lambdas of other kinds such as numerics
  • Must only have 2 states (forced by lambdas)
  • Only works on a single ts and a single v0 column
  • Side Effects: None
  • Input: ts, v0 grid
  • Output: Transmuted history grid of ts, v0 columns
  • Filter used appears in col meta data
  • read(cool).hisRead(2016-07).zivaFourier
  • read(temp and discharge).hisRead(2016-07).zivaFourier(x => x > 70, "scatter")

zivaHisDurPlot(hisGrid, delta: 0%, dur: 16min, theChartType: "scatter")

Plot duration bucket vs frequency

  • Percentage and Duration thresholds determined manually or automatically
  • Supports a true History Grid with multiple V columns
  • Side Effects: Data interpolated, multiple histories that do not start and/or end around same time will result in leading and trailing 0s
  • leading and trailing 0s and length of entire window will affect results in auto mode
  • Input: ts, val*n grid where val*n can be multiple V columns with only numbers
  • Output: Transmuted history grid of ts, V*n columns
  • delta and dur used appear in column meta data
  • read(temp and discharge).hisRead(yesterday).zivaHisDurPlot
  • read(temp and discharge).hisRead(yesterday).zivaHisDurPlot(50%, 16min, "bar")
  • readAll(temp and discharge).hisRead(yesterday).zivaHisDurPlot
  • readAll(temp and discharge).hisRead(yesterday).zivaHisDurPlot(50%, 16min)

zivaHisNoiseFilter(hisGrid, delta: 0%, dur: 16min)

Remove low duration events

  • Percentage and Duration thresholds determined manually or automatically
  • Supports a true History Grid with multiple V columns
  • Side Effects: Data interpolated, multiple histories that do not start and/or end around same time will result in leading and trailing 0s
  • leading and trailing 0s and length of entire window will affect results in auto mode
  • Input: ts, val*n grid where val*n can be multiple V columns with only numbers
  • Output: Transmuted history grid of ts, V*n columns
  • delta and dur used appear in column meta data
  • read(temp and discharge).hisRead(yesterday).zivaHisNoiseFilter
  • read(temp and discharge).hisRead(yesterday).zivaHisNoiseFilter(50%, 16min)
  • readAll(temp and discharge).hisRead(yesterday).zivaHisNoiseFilter
  • readAll(temp and discharge).hisRead(yesterday).zivaHisNoiseFilter(50%, 16min)

zivaHisShowNoise(hisGrid, delta: 0%, dur: 16min)

Remove high duration events

  • Percentage and Duration thresholds determined manually or automatically
  • Supports a true History Grid with multiple V columns
  • Side Effects: Data interpolated, multiple histories that do not start and/or end around same time will result in leading and trailing 0s
  • leading and trailing 0s and length of entire window will affect results in auto mode
  • Input: ts, val*n grid where val*n can be multiple V columns with only numbers
  • Output: Transmuted history grid of ts, V*n columns
  • delta and dur used appear in column meta data
  • read(temp and discharge).hisRead(yesterday).zivaHisShowNoise
  • read(temp and discharge).hisRead(yesterday).zivaHisShowNoise(50%, 16min)
  • readAll(temp and discharge).hisRead(yesterday).zivaHisShowNoise
  • readAll(temp and discharge).hisRead(yesterday).zivaHisShowNoise(50%, 16min)

zivaMultiFourier(theList)

Plot multiple Fourier grids together

  • All input grids must come from zivaFourier()
  • Works on booleans or lambdas of other kinds such as numerics
  • Side Effects: None
  • Input: Multiple Fourier grids
  • Output: Multiple v columns
  • zivaMultiFourier([read(temp and discharge).hisRead(2010-01).zivaFourier(x=>x<60),read(temp and discharge).hisRead(2010-01).zivaFourier(x=>x>80)])

zivaNumbDist(hisGrid, bins: 10, theChartType: "bar", raw: true, forceInterval: false, forceCleanStart: false)

Plot bins vs frequency

  • Also shows average and total duration in designated bin
  • Works on booleans, numbers, and strings
  • Only works on a single ts and a single v0 column
  • Set 4th parameter (raw) to false to see percentages instead of counts
  • Side Effects: None
  • Input: ts, v0 grid
  • Output: Transmuted history grid of ts, v0 columns
  • Bins used appears in col meta data
  • read(cool).hisRead(2016-07).zivaNumbDist
  • read(temp and discharge).hisRead(2016-07).zivaNumbDist
  • read(temp and discharge).hisRead(2016-07).zivaNumbDist(20, "scatter")
  • read(temp and discharge).hisRead(2010-01).zivaNumbDist(10, "bar", false) // 10 groups
  • read(temp and discharge).hisRead(2010-01).zivaNumbDist(10, "bar", false, true, true) // groups of x have interval 10 and start at whole number

zivaRawFilter(hisGrid, delta: 50%)

Show duration buckets (manual)

  • Percentage and Duration thresholds determined manually
  • Debug function called by zivaHisNoiseFilter(), zivaHisShowNoise(), and zivaHisDurPlot()
  • Supports only history grids with a ts, v0 column
  • Side Effects: None
  • Input: ts, v0 grid where v0 can only be numbers
  • Output: Transmuted history grid of ts, v0, v1 = % change, v2 = group start, v3 = group end, v4 = group duration
  • delta used appears in column meta data
  • read(temp and discharge).hisRead(yesterday).zivaRawFilter(50%)

zivaRawFilterAuto(hisGrid)

Show duration buckets (auto)

  • Percentage and Duration thresholds determined automatically
  • Debug function called by zivaHisNoiseFilter(), zivaHisShowNoise(), and zivaHisDurPlot()
  • Supports only history grids with a ts, v0 column
  • Side Effects: None
  • Input: ts, v0 grid where v0 can only be numbers
  • Output: Transmuted history grid of ts, v0, v1 = % change, v2 = group start, v3 = group end, v4 = group duration
  • delta used and dur to be used appear in column meta data
  • read(temp and discharge).hisRead(yesterday).zivaRawFilterAuto

zivaEnergyInOut(theAhu, dateRange)

Compare Temperature Differential to SiteMeter's Energy

  • Requires zone air temp sensor point on equip, weather temp, and siteMeter needs energy point
  • Side Effects: None
  • Input: equip (usually ahu) with zone air temp sensor and dates
  • Output: kWh / deltaTemp hisGrid
  • read(ahu).zivaEnergyInOut(pastMonth)

zivaMode(hisGrid, interval)

Find One or More Modes for Dataset

  • The interval parameter determines what range constitutes the same number
  • Only works on a single ts and a single v0 column
  • Side Effects: None
  • Input: ts, v0 grid and the interval used for the groups (ie 1 treats 1.50 to 2.49 as 2 and so on)
  • Output: List of dicts as string which can include multiple modes (if two or more numbers appear the same number of times)
  • read(temp and discharge).hisRead(pastMonth).zivaMode
  • read(cool).hisRead(pastMonth).zivaMode
  • read(power).hisRead(pastMonth).zivaMode(2)

Please contact adam@ziva-tech.com with any questions.

Published by Ziva Tech Solutions

Packages by Ziva Tech Solutions

Free packages

Package details
Version1.5.0
Licensen/a
Build date3 months ago
on 22nd Nov 2023
Depends on
File namezivaSignalAnalysisExt.pod
File size23.55 kB
MD574b4388f62690d384eb071fffb987910
SHA1 df5ae13676f8230538078f4d6071fb30ce5701d0
Published by
Ziva Tech SolutionsDownload now
Also available via SkyArc Install Manager
Tags
Pod File