patchGNU Octave - Patches: patch #9199, Added statelevels function to...

 
 

patch #9199: Added statelevels function to octave-signal

Submitted by:  None
Submitted on:  Wed 28 Dec 2016 07:32:24 PM UTC  
 
Category: Forge : new functionPriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 30 Dec 2016 10:01:42 PM UTC, comment #2:

Attached is the m file (not a patch).

This new version is compatible with the matlab function.

Fixes:
*takes vectors of both dimensions
*variable arguments for
*bin numbers
*method
*returns histogram bin count and bin centers

This has been verified with clock_ex.mat and returns the same values as the MATLAB implementation of the function.

Many other functions can now be implemented as they are dependent on this eg dutycycle.

B/W,

Chris

(file #39332)

Chris <elca>
Fri 30 Dec 2016 02:29:34 AM UTC, comment #1:

Currently returns strange values for perfect bi-level signals. Eg 0.005 instead of 0.

Not sure if this is correct behavior or not. Will compare with MATLAB and make appropriate changes.

I plan to write a thorough test for the function and make improvements to it shortly.

Please advise if you want to delete this patch and start again.

B/W,

Chris

Chris <elca>
Wed 28 Dec 2016 07:32:24 PM UTC, original submission:

Added function statelevels.m to inst dir.

The function uses the histogram method described here IEEE® Standard on Transitions, Pulses, and Related Waveforms, IEEE Standard 181, 2003, pp. 15–17.

I have not made any changes as I'm not sure how to add it to list of implemented functions.

The implementation is basic and doesn't currently support different algorithms or custom bin widths - this will come later.

However, it is certainly good enough to implement many other functions which are reliant on it such as dutycycle.

B/W,

Chris

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #39332:  statelevels.m added by elca (4KiB - text/x-objcsrc)
file #39326:  statelevels.patch added by None (3KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by elca (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 30 Dec 2016 10:01:42 PM UTCelcaAttached File-=>Added statelevels.m, #39332
    Wed 28 Dec 2016 07:32:24 PM UTCNoneAttached File-=>Added statelevels.patch, #39326

    Back to the top


    Powered by Savane 3.1-cleanup1