NEW FILTER: Unique Digits

NEW FILTER: Unique Digits

Postby timmac » Tue Oct 16, 2012 4:18 pm

Unique Digits Filter

Status: Beta
Version 1.7.3
Known Issues: None
Supported: Statistics, Ticket Analyser, Custom Analyser, Ticket Properties


This will appear in the Category ".Tim Mac Filters" at the top

This filter will count the number of unique digits in the ticket. An unique digit being the digit counted only one. For example, in the ticket 02-06-08-18-51 (ignoring bonus) the digits are 2,6,8,1,8,5,1 (ignore zeros). The unique digits are 2,6,8,1,5 so the total is 5.

You can set the Min and Max of the number of unique digits.

Example: Min 2, Max 5

1-2-3-4-5-6 REJECTED (unique digits 6 (1,2,3,4,5,6))
10-12-26-38-49 REJECTED (unique digits 7 (ignore 0) (1,2,6,3,8,4,9))
10-12-16-19-20 ACCEPTED (unique digits 4 (1,2,6,9))

Works in Package Reduce and analysis and winning ticket properties

PLEASE FOLLOW INSTRUCTIONS IN THREAD "How To Install Plugin" for installation instructions
Last edited by timmac on Tue Jan 08, 2013 4:19 pm, edited 6 times in total.
timmac
 
Posts: 56
Joined: Tue Sep 04, 2012 3:24 pm

Re: NEW FILTER: Independent Digits

Postby Neener » Tue Oct 16, 2012 5:39 pm

timmac, Thank you for this fabulous filter!

I downloaded & when I tried to install, it said there was an error & could not install.
I ran the update for EL5 & tried again. This time it said it was already installed.
I tried the filter & it does work perfectly. Thank you so much again.

Neener
Neener
 
Posts: 47
Joined: Thu Mar 06, 2008 1:39 am

Re: NEW FILTER: Independent Digits

Postby timmac » Tue Oct 16, 2012 6:10 pm

Neener wrote:timmac, Thank you for this fabulous filter!

I downloaded & when I tried to install, it said there was an error & could not install.
I ran the update for EL5 & tried again. This time it said it was already installed.
I tried the filter & it does work perfectly. Thank you so much again.

Neener


Hi
Thanks, the upload is fixed for future downloads!
I expect to be adding a good number of digit filters to this NBM so keep an eye out for updates
timmac
 
Posts: 56
Joined: Tue Sep 04, 2012 3:24 pm

Re: NEW FILTER: Independent Digits

Postby andthen » Wed Oct 17, 2012 11:22 am

hi Tim
I would love to use your filters but find them not possible to use because they don't work in a complex filter...have you had a chance to look at this issue yet? :)

Cheers
andthen
 
Posts: 71
Joined: Sat Feb 04, 2012 7:03 am

Re: NEW FILTER: Independent Digits

Postby liviu » Sun Oct 21, 2012 1:18 pm

timmac wrote:Independent Digits Filter

Status: Beta
Version 1.0.0
Known Issues: Custom Analyzer settings not remembered
Supported: Statistics, Ticket Analyser


This will appear in the Category "Tim Mac Filters 2" at the top

This filter will count the number of independent digits in the ticket. An independent digit being the digit counted only one. For example, in the ticket 02-06-08-18-51 (ignoring bonus) the digits are 2,6,8,1,8,5,1 (ignore zeros). The unique digits are 2,6,8,1,5 so the total is 5.

You can set the Min and Max of the number of unique independent digits.

Example: Min 2, Max 5

1-2-3-4-5-6 ACCEPTED (independent digits 6 (1,2,3,4,5,6))
10-12-26-38-49 REJECTED (independent digits 7 (ignore 0) (1,2,6,3,8,4,9))
10-12-16-19-20 ACCEPTED (independent digits 4 (1,2,6,9))

Works in Package Reduce and analysis and winning ticket properties


Hi Tim,
many thanks;just one question for my understanding
In your example we have:
Example: Min 2, Max 5

1-2-3-4-5-6 ACCEPTED (independent digits 6 (1,2,3,4,5,6))
10-12-26-38-49 REJECTED (independent digits 7 (ignore 0) (1,2,6,3,8,4,9))
10-12-16-19-20 ACCEPTED (independent digits 4 (1,2,6,9))

So , we have Min 2, Max 5, but first ticket was accepted and have 6 independent digits; could you pls let me know if it is a mistake or I didn't understood how it function this filter..

Many Tx,
regards,
Liviu
liviu
 
Posts: 49
Joined: Tue Dec 27, 2011 11:30 am

Re: NEW FILTER: Independent Digits

Postby timmac » Mon Oct 22, 2012 4:06 pm

liviu wrote:
Hi Tim,
many thanks;just one question for my understanding
In your example we have:
Example: Min 2, Max 5

1-2-3-4-5-6 ACCEPTED (independent digits 6 (1,2,3,4,5,6))
10-12-26-38-49 REJECTED (independent digits 7 (ignore 0) (1,2,6,3,8,4,9))
10-12-16-19-20 ACCEPTED (independent digits 4 (1,2,6,9))

So , we have Min 2, Max 5, but first ticket was accepted and have 6 independent digits; could you pls let me know if it is a mistake or I didn't understood how it function this filter..

Many Tx,
regards,
Liviu


Hi Liviu

Yes, sorry, that is a mistake in the example - the first ticket should be REJECTED (6 digits when max is 5)

I'll correct original post

Regards
timmac
 
Posts: 56
Joined: Tue Sep 04, 2012 3:24 pm

Re: NEW FILTER: Independent Digits

Postby timmac » Wed Nov 14, 2012 4:49 pm

andthen wrote:hi Tim
I would love to use your filters but find them not possible to use because they don't work in a complex filter...have you had a chance to look at this issue yet? :)

Cheers


Hi
Yes, this issue is now fixed in v1.0.3 so you can use in a complex filter

Cheers
timmac
 
Posts: 56
Joined: Tue Sep 04, 2012 3:24 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests