Recognizing data clusters

I have an exercise in computer logic.  I have and array of XY values that when plotted on an XY graph would form clusters.  Sometimes there is one cluster of plots, sometimes two, sometimes three.  The cluster shapes are somewhat irregular.  And sometimes the clusters slightly overlap.
Anyway, my program needs to be able to recognize, for any given x,y plot, which cluster that plot belongs too.  This is so my program can analyize that plot seperately.
Possible solutions I'm investigating is incorporating classical logic; fuzzy logic; simulated neural network.  Frankly, I not much of a mathematician, so some classical logic solution would probably be easiest for me.

easy shades,
i've got one question it looks like the value in your array shows to which region it attachs. is this right? then it is easy:
Ton
Message Edited by TonP on 08-05-2006 02:13 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Attachments:
Example_BD.png ‏43 KB

Similar Messages

  • What's data Clusters? Plese see...

    Hello all,
    What is the meaning of this:::
    The PCLn database tables are used to store data clusters (such as results from Time Management, Travel Management, and Payroll) What are data clusters and is there any documentation on it? Any special way to access them using open SQL?
    Thanks,
    Charles.

    Hi,
    [Data Clusters|http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3bb7358411d1829f0000e829fbfe/content.htm]
    [Storage Media for Data Clusters|http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3bc4358411d1829f0000e829fbfe/content.htm]
    [clusters|www.hrexpertonline.com/downloads/12-04.doc ]
    Thanks and Regards,
    Naveen Dasari

  • Exporting data clusters with type version

    Hi all,
    let's assume we are saving some ABAP data as a cluster to database using the IMPORT TO ... functionality, e.g.
    EXPORT VBAK FROM LS_VBAK VBAP FROM LT_VBAP  TO DATABASE INDX(QT) ID 'TEST'
    Some days later, the data can be imported
    IMPORT VBAK TO LS_VBAK VBAP TO LT_VBAP FROM DATABASE INDX(QT) ID 'TEST'.
    Some months or years later, however, the IMPORT may crash: Since it is the most normal thing in the world that ABAP types are extended, some new fields may have been added to the structures VBAP or VBAK in the meantime.
    The data are not lost, however: Using method CL_ABAP_EXPIMP_UTILITIES=>DBUF_IMPORT_CREATE_DATA, they can be recovered from an XSTRING. This will create data objects apt to the content of the buffer. But the component names are lost - they get auto-generated names like COMP00001, COMP00002 etc., replacing the original names MANDT, VBELN, etc.
    So a natural question is how to save the type info ( = metadata) for the extracted data together with the data themselves:
    EXPORT TYPES FROM LT_TYPES VBAK FROM LS_VBAK VBAP FROM LT_VBAP TO DATABASE INDX(QT) ID 'TEST'.
    The table LT_TYPES should contain the meta type info for all exported data. For structures, this could be a DDFIELDS-like table containing the component information. For tables, additionally the table kind, key uniqueness and key components should be saved.
    Actually, LT_TYPES should contain persistent versions of CL_ABAP_STRUCTDESCR, CL_ABAP_TABLEDESCR, etc. But it seems there is no serialization provided for the RTTI type info classes.
    (In an optimized version, the type info could be stored in a separate cluster, and being referenced by a version number only in the data cluster, for efficiency).
    In the import step, the LT_TYPES could be imported first, and then instances for these historical data types could be created as containers for the real data import (here, I am inventing a class zcl_abap_expimp_utilities):
    IMPORT TYPES TO LT_TYPES FROM DATABASE INDX(QT) ID 'TEST'.
    DATA(LO_TYPES) = ZCL_ABAP_EXPIMP_UITLITIES=>CREATE_TYPE_INFOS ( LT_TYPES ).
    assign lo_types->data_object('VBAK')->* to <LS_VBAK>.
    assign lo_types->data_object('VBAP')->* to <LT_VBAP>.
    IMPORT VBAK TO <LS_VBAK> VBAP TO <LT_VBAP> FROM DATABASE INDX(QT) ID 'TEST'.
    Now the data can be recovered with their historical types (i.e. the types they had when the export statement was performed) and processed further.
    For example, structures and table-lines could be mixed into the current versions using MOVE-CORRESPONDING, and so on.
    My question: Is there any support from the standard for this functionality: Exporting data clusters with type version?
    Regards,
    Rüdiger

    The IMPORT statement works fine if target internal table has all fields of source internal table, plus some additional fields at the end, something like append structure of vbak.
    Here is the snippet used.
    TYPES:
    BEGIN OF ty,
      a TYPE i,
    END OF ty,
    BEGIN OF ty2.
            INCLUDE TYPE ty.
    TYPES:
      b TYPE i,
    END OF ty2.
    DATA: lt1 TYPE TABLE OF ty,
          ls TYPE ty,
          lt2 TYPE TABLE OF ty2.
    ls-a = 2. APPEND ls TO lt1.
    ls-a = 4. APPEND ls TO lt1.
    EXPORT table = lt1 TO MEMORY ID 'ZTEST'.
    IMPORT table = lt2 FROM MEMORY ID 'ZTEST'.
    I guess IMPORT statement would behave fine if current VBAK has more fields than older VBAK.

  • Importing Data Clusters

    Dear All,
    How do I import data clusters from a database table to view the data it contains. I know, or at least I think, I have to use the IMPORT command which has the following syntax:
    IMPORT parameter_list FROM medium [conversion_options].
    But how do I find what the parameter list, their type, etc. and is medium the name of the table? Is there a tool that enables me to read data clusters similar to se16 for data fields?
    Thank you for your help,
    Philon

    See the simple example :
    REPORT  ZTEST_AMEM1.-> Main program and usinge export
    tables : lfa1.
    data : begin of i_lfa1 occurs 0 ,
           lifnr like lfa1-lifnr,
           name1 like lfa1-name1,
           land1 like lfa1-land1,
           end of i_lfa1.
    start-of-selection.
    select lifnr
           name1
           land1 from lfa1
           into table i_lfa1 up to 100 rows.
    Export
    export i_lfa1 to memory id 'SAP'.
    submit ztest_amem2 and return.
    write:/ 'hello'.
    *& Report  ZTEST_AMEM2
    REPORT  ZTEST_AMEM2.-> called program and used import command
    data : begin of j_lfa1 occurs 0,
           lifnr like lfa1-lifnr,
           name1 like lfa1-name1,
           land1 like lfa1-land1,
           end of j_lfa1.
    start-of-selection.
    import i_lfa1 to j_lfa1 from memory id 'SAP'.
    loop at j_lfa1.
    write:/ j_lfa1-lifnr,j_lfa1-name1,j_lfa1-land1.
    endloop.

  • Data clusters

    Hi experts,
    Is there anyway to see the data/ structure of the data stored in a database cluster?
    I am actually getting a mismatch error when using IMPORT statement.
    SO I would like to check if the structure I am using are the same.
    This is Kinda urgent. Please reply
    Goldie.

    hi
    check these links
    Table Clusters
    http://help.sap.com/saphelp_bw31/helpdata/en/fc/eb3bf8358411d1829f0000e829fbfe/content.htm
    hope this helps,
    priya
    Message was edited by: Priya

  • Saving data clusters

    Hi,
    I've just got a question concerning the best way to save my data. I'm using LV 7.0 and Vision 7.1 on a 2P Microscope.
    I'm acquiring images, heartbeat of the animal and a stimulation signal which all depend on the same internal clock.
    Now, for each image, I record simultaneously the heartbeat and the signal from the stimulation apparatus. (This equals about 50 values for each signal per image)
    Saving clusters including two arrays of data is not possible. Knowing that I would like to open and work on the files easily afterwards and play all of it back simultaneously (the film showing the cells should run above the waveforms showing the heartbeat and the stimulation signals) wht would be the best way to save this large data files?
    Converting all images into arrays and saving a set of arrays, saving everything one by one images, heartbeat and stimulation and then using a VI to open everything at once, ...
    I know this is probably not vey complicated but if anyone has some experience, I would be grateful. As we will use it to record and exmaine films lasting abour ten minutes to half an hour, acquiring images at 10-20Hz, the amount of data becomes overwhelming very quickly...
    Thanks

    But you can indeed save and read data in form of clusters( containing arrays, strings, numerics , boolean etc)
    Look at attached VI's
    regards
    Dev
    Message Edited by devchander on 01-16-2006 06:05 AM
    Attachments:
    write cluster.vi ‏27 KB
    read cluster.vi ‏29 KB

  • How to add tables in data clustering after table creation

    Hi,
    I want to use clustered tables, but the issue is that i have created tables but not
    clusters and now i want to make a cluster and add the tables in this cluster.
    but doesn't find any solution.
    I am using
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/clustrs.htm#i1006586
    Thanks
    Umesh

    You have a couple of choices but none of them what you want.
    Not knowing version or cluster type or quantity of data or other things my first thought would be to rename the table, create a new one inside the cluster then do an INSERT INTO SELECT * FROM.

  • How to over weite old data length in data clusters.

    Hello All,
            I'm geting short dump CONNE_IMPORT_WRONG_COMP_LENG. bcoz of new data length of one field (Host) is not reflecting in Data Clustor.
           How to over write old data length with new data length....
    Thanks,

    suresh8 wrote:
    how to copy my old data in my i6?
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
    As for songs that are on your iPhone, those cannot be copied from the device to another location.

  • Reading Data Clusters from Database ??

    Hi at all,
    how can I read Data from a ClusterTable´`?
    In the Database "STXL" is a field "CLUSTR" and "CLUSTD" and i want see the input. But before i can see it, i must read this Data Cluster.
    How does it work``?
    IMPORT tab = itab
    FROM DATABASE stxl(tx)
    ID   wa_TDOBJECT
    TO wa_stxl.

    well, normally you got FM´s which enable you to do selects or whatever with cluster tables.
    in your case it would be FM READ_TEXT or related FM´s. I do ABAP programming for quite a while now, and i never came to the situation where i manually had needed to read a cluster table.

  • Recognizing dates in mail and adding events to iCal

    How do I make OSX recognize dates in mail and add events to iCal?
    This works on my laptop, but not my iMac. They have the same new version of OSX and iCal.
    I cant figure out what setting makes this work on one machine and not the other.
    Thanks
    CM

    First make an iCal backup, File > Export > Archive.
    Remove the following to the trash and restart your computer:
    Home > Library > Caches
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache)
    If the issue persists:
    Remove the following to the trash and restart your computer:
    Home > Library > Caches
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    __NOTE: Removing these files will remove any shared (CalDAV, exchange, etc.) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    Hope that helps.

  • ITunes not recognizing data CD full of unprotected AAC files

    Hi,
    Running iTunes 6.0.1.3.
    When I create a data CD-ROM full of AAC files and insert it into my CD-ROM drive while iTunes is open, iTunes does not seem to recognize the disc. CD-ROM was burned as ISO format with Nero. No problem whenever I insert an audio-CD. iTunes recognizes audio CDs. I expected iTunes to allow me to play the AAC files on the ISO CD-ROM.
    Any help?
    Thanks,
    Kevin

    You got it:
    iTunes uses a special .xml file on data (and mp3) CDs it burns. No other program (to my knowledge) writes taht .xml file.
    To add the entire contents to the library, go to edit\prefs\advanced, and check 'Copy files to iTunes folder when adding to library.'
    Then drag the contents of the CD from My Computer into iTunes.
    There's no way to 'browse' a CD in iTunes unless it was burned in iTunes.

  • T60 HDD res. partition, USB ports and DVD-RAM drive no longer recognizing data/media!

    I have a base installation of the IBM T60.. I made no modifications to the setup or configuration of how the HDD is structured nor have I downloaded and installed any strange drivers... only automatically downloaded drivers from Microsoft update and manually downloaded driver updates from the Lenovo website.
    One day everything was working fine.  Next day, my USB devices, reserved partition (can't remember what this is called) and the DVD-RAM drive stopped working but power was still getting to these devices.
    My DVD-RAM drive is seen as a DVD-RAM on first bootup.  When I insert a CD or DVD media in the drive, the Explorer tree changes DVD-RAM to CD-ROM in the Explorer (really strange).  It behaves like there is no media in the drive.  Cannot boot with that drive either.
    In addition, I have external USB HDD and Flash drives as well.  None of them work on this T60 anymore.
    When I plug in an external USB HDD or Flash drive, I get "not formatted" error message and a prompt to format my drives?!
     I tested these USB external drives on a desktop machine and verified that they are working 100% fine.  So the problem has something to do with my IBM/Lenovo T60.
    It almost seems like something broke on the motherboard perhaps?  I downloaded and installed the latest BIOS updates as well to no avail.  Please help.  Thanks in advance for your time and consideration of this issue.
    Message Edited by bodmaster on 07-18-2008 09:51 PM
    Message Edited by bodmaster on 07-18-2008 09:52 PM
    Message Edited by bodmaster on 07-18-2008 09:52 PM

    Anyone have any ideas?  *praying*

  • Fetching data from 'Z' clusters

    Hi Gurus,
       We an existing 'Z' cluster in the HR system.I want to know that how we can read data from such 'Z' clusters.
    I tried finding reagrding macros and other methods but it seems that macros can be used to read standard cluster tables.
    Please provide your inputs for the same.
    Regards,
    Shlesha

    Hello Shlesha,
    Do you mean cluster tables or data cluster(INDX type tables)?
    If you want to read data from INDX table you've to use [IMPORT FROM DATABASE|http://help.sap.com/abapdocu_702/en/abapimport_medium.htm#!ABAP_ALTERNATIVE_4@4@] statement.
    Cheers,
    Suhas
    PS: You can use the same statement to read custom data clusters. It is not restricted to INDX only!

  • Date function problems with dates from core not recognized as dates

    Our core provides dates in two formats: YYYYDDD and MMDDYY (YYYYDDD for today [2/21/12] would be 2012052).  We have determined that Crystal Reports is not viewing them as dates, but rather numbers. If querying on just a specific date, no problem. But if I want to use a date function like DayOfWeek, then things don't work.
    I need a report to always provide yesterday's data - except on Monday, where it needs to look back at Friday.
    I tried a criteria of:
    if DayOfWeek(CurrentDate) = 1 then {DDMAST.DATOP7} = CurrentDate - 2 else
    if DayOfWeek(CurrentDate) = 2 then {DDMAST.DATOP7} = CurrentDate - 3 else
    {DDMAST.DATOP7} = CurrentDate -1
    {DDMAST.DATOP7} is the date field from our core.
    I tried this but got an error message of "A Number is Required Here" and it highlights the CurrentDate - 2.
    Since we believe that Crystal Report is not viewing our dates as dates - but viewing them as numbers, what do I need to do to correct this?  Someone suggested I'd need to extract each date portion (month, date, and year) and create variables to "build" a date that Crystal Reports would understand.  Any suggestions?

    Hi, 
    You're correct.  There appears to be two branches in this thread. 
    To address your issue, Crystal only recognizes actual date types, ie. Months, Days and Years.  Your serial date isn't a recognized date type so we have to: 
    1)  Determine which format your date field is
    2)  Convert your number to a date using the appropriate formatting. 
    I am assuming your dates will either be 6 (MMddyy) or 7 (yyyyddd) characters long.  If there are other patterns you'll need to determine that. 
    The problem I found is what does your date for today (March 6, 2012) look like in MMddyy format? 
    Any month before October would never have a leading 0 if your date is stored as a number.  So you should take that into account as well using my logic. 
    I added that into the logic by checking for a length of 5. 
    NumberVar Full := 030612;
    StringVar myDate;
    myDate := ToText (Full, 0, "", "");
    Select Length (myDate)
        Case 5: Date (2000 + ToNumber (myDate [4 to 5]), ToNumber (myDate [1]), ToNumber (myDate [2 to 3]))
        Case 6: Date (2000 + ToNumber (myDate [5 to 6]), ToNumber (myDate [1 to 2]), ToNumber (myDate [3 to 4]))
        Case 7: Date (ToNumber (myDate[1 to 4]), 1, 1) + (ToNumber (myDate [5 to 7]) - 1)
        Default: Date (0, 0, 0);
    If you edit the first line and change it to: 
    NumberVar Full := 2012066;
    You will also get today's date.

  • Data recognition, some months not recognized...?

    I love the "data recognition"-feature, so I can create events directly from mail.app on the recognized date.
    BUT, for some reason dates in the months of december, march and may are not recognized?? I have tested several times, made sure format is correct, tried the english versions (I'm in denmark), but it is always the same. March, May and December dates, not recognized!
    Anyone had similar issue or answer for this??

    how to contact apple with a language-specific issue?
    Have you filed a bug report yet by any chance?

Maybe you are looking for