Changeset 1086


Ignore:
Timestamp:
02/19/21 00:15:50 (8 days ago)
Author:
sz
Message:

updated for Framsticks version 5.0rc18

  • added MessageCatcher? object
  • more info on how Genotype.instances==0 affects selection methods
  • Vector.avg and stddev return null when empty
File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/Framclipse/com.framsticks.framclipse/res/framscript.xml

    r1058 r1086  
    945945                </element>
    946946                <element name="worst" function="true" type="Genotype" flags="34">
    947                         <description><![CDATA[Returns the genotype object having the lowest fitness. Unrated genotypes (instances==0) are ranked lower than those having at least one instance.]]></description>
     947                        <description><![CDATA[Returns the genotype object having the lowest fitness. Unrated genotypes (with instances=0) are ranked lower than those having at least one instance.]]></description>
    948948<arguments/></element>
    949949                <element name="best" function="true" type="Genotype" flags="34">
    950                         <description><![CDATA[Returns the genotype object having the highest fitness. Unrated genotypes (instances==0) are ranked lower than those having at least one instance.]]></description>
     950                        <description><![CDATA[Returns the genotype object having the highest fitness. Unrated genotypes (with instances=0) are ranked lower than those having at least one instance.]]></description>
    951951<arguments/></element>
    952952                <element name="random" function="true" type="Genotype" flags="34">
    953                         <description><![CDATA[Returns a random genotype object]]></description>
     953                        <description><![CDATA[Returns a random genotype object disregarding fitness value, but taking into account 'instances'. Unrated genotypes (with instances=0) are treated as if they had instances=1.]]></description>
    954954<arguments/></element>
    955955                <element name="roulette" function="true" type="Genotype" flags="34">
     
    10961096                </element>
    10971097                <element name="worst" function="true" type="integer" deprecated="true" flags="8226">
    1098                         <description><![CDATA[Gets the worst (lowest fitness) genotype index. Unrated genotypes (instances==0) are ranked lower than those having at least one instance.]]></description>
     1098                        <description><![CDATA[Gets the worst (lowest fitness) genotype index. Unrated genotypes (instances=0) are ranked lower than those having at least one instance.]]></description>
    10991099<arguments/></element>
    11001100                <element name="random" function="true" type="integer" deprecated="true" flags="8226">
     
    13681368                </element>
    13691369                <element name="neuadd_T" type="integer" min="0" max="1">
    1370                         <description><![CDATA[Touch and proximity sensor (Tc+Tp combined)
     1370                        <description><![CDATA[Touch and proximity sensor (Tcontact and Tproximity combined)
    13711371-1=no contact
    137213720=just touching
     
    27072707                </element>
    27082708        </type>
     2709        <type name="MessageCatcher" context="Global context">
     2710<description><![CDATA[Capture error messages.]]></description>
     2711                <element name="new" function="true" type="MessageCatcher"><arguments/></element>
     2712                <element name="close" function="true" type="void" flags="256"><arguments/></element>
     2713                <element name="store" type="integer" min="0" max="2" default="0" flags="256"/>
     2714                <element name="error_count" type="integer" flags="257"/>
     2715                <element name="warning_count" type="integer" flags="257"/>
     2716                <element name="info_count" type="integer" flags="257"/>
     2717                <element name="stored_count" type="integer" flags="257"/>
     2718                <element name="messages" type="string" flags="257"/>
     2719                <element name="summary" type="string" flags="257"/>
     2720        </type>
    27092721        <type name="Model" context="Global context">
    27102722                <element name="se" type="float" flags="256"/>
     
    31153127                </element>
    31163128                <element name="ncl_T" type="integer" min="0" max="1">
    3117                         <description><![CDATA[Touch and proximity sensor (Tc+Tp combined)
     3129                        <description><![CDATA[Touch and proximity sensor (Tcontact and Tproximity combined)
    31183130-1=no contact
    311931310=just touching
     
    45524564                </element>
    45534565                <element name="neuadd_T" type="integer" min="0" max="1">
    4554                         <description><![CDATA[Touch and proximity sensor (Tc+Tp combined)
     4566                        <description><![CDATA[Touch and proximity sensor (Tcontact and Tproximity combined)
    45554567-1=no contact
    455645680=just touching
     
    53775389                </element>
    53785390                <element name="ncl_T" type="integer" min="0" max="1">
    5379                         <description><![CDATA[Touch and proximity sensor (Tc+Tp combined)
     5391                        <description><![CDATA[Touch and proximity sensor (Tcontact and Tproximity combined)
    53805392-1=no contact
    538153930=just touching
     
    66026614                        </arguments>
    66036615                </element>
    6604                 <element name="avg" type="float" flags="257"/>
    6605                 <element name="stdev" type="float" flags="257">
     6616                <element name="avg" type="untyped" flags="257"/>
     6617                <element name="stdev" type="untyped" flags="257">
    66066618                        <description><![CDATA[=sqrt(sum((element[i]-avg)^2)/(size-1)) which is estimated population std.dev. from sample std.dev.]]></description>
    66076619                </element>
Note: See TracChangeset for help on using the changeset viewer.