LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

idea for grouping in 1D numeric series

Hi, I need to know your idea in my numeric series.

For example, consider a series, "1:0.0000011 2:0.0000011 3:0.0000148 4:0.0000022 5:0.0000159 6:0.0000002 7:0.0000148 8:0.0000022 9:0.0000159 10:0.0000002....."

The regular group is just started in index #3 with size of 4 and contained two irregular parts.

My problem is the series can be varied according to my parameters.

Sometime, no irregular part or size of 2....

 

My question is how to detect "generally" the regular group in a 1D matrix?

Is there some useful technique for this work?

 

labmaster.

Message Edited by labmaster on 07-28-2009 11:15 AM
0 Kudos
Message 1 of 12
(3,429 Views)

Define:

  • "regular group"
  • "size of 4"
  • "irregular parts"
  • "varied according to my parameters" - varied how, and what parameters?
0 Kudos
Message 2 of 12
(3,414 Views)

Sorry for my expression.

I meant the series was created from my private parameters.

 

Therefore, you don't have to take care about it.

Just think about 1D series contain regular group and irregular part.

The irregular part is started from index #1 all the times.

 

I have to know you the size of group could be varied in some situations.

 

labmaster.

Message Edited by labmaster on 07-28-2009 12:07 PM
0 Kudos
Message 3 of 12
(3,403 Views)

I read then re-read then

 

 

 

Please slow down and gothrough a couple of your examples and show us which part is which.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 12
(3,393 Views)

The length is irrelevant. Use the match regular expression function.

front panel.PNG

 

code.PNG

 

Is this what you wanted to do?

Cory K
Message 5 of 12
(3,388 Views)

It also works the same way if the 1st part of the expression is what is varied.

 

front panel 2.PNG

 

code2.PNG

Cory K
0 Kudos
Message 6 of 12
(3,384 Views)

Let's consider one more example: "numeric series"

1, 2, 3, 4, 5, 3, 4, 5, 3, 4, 5, 3, 4, 5,...., 3, 4, 5, ....

(My real series is expressed in double precision number)

Each number have a proper index in this series.

 

The irregular part: "1, 2"

The minimum regular group part: "3, 4, 5"

The starting index of regular part: 3 (when the first is 1)

 

Do you understand my question?

It is related to grouping.

 

labmaster.

Message Edited by labmaster on 07-28-2009 12:51 PM
Message Edited by labmaster on 07-28-2009 12:53 PM
0 Kudos
Message 7 of 12
(3,375 Views)
That is confusing. If you have an array of those values, then the index of the first occurence of '1' is 0 and the index of the first '3' is 2. The question still remains, what exactly do you want to do with this series of numbers?
0 Kudos
Message 8 of 12
(3,369 Views)

I did.

A big index was selected. then find it again -> size of group.

 

 

labmaster.

0 Kudos
Message 9 of 12
(3,343 Views)

Dennis, nice to meet you.

just for explanation with start index = 1.

 

labmaster.

0 Kudos
Message 10 of 12
(3,341 Views)