Pagina principală: Difference between revisions

From Bitnami MediaWiki
No edit summary
No edit summary
Line 1: Line 1:
<math display="inline">{dy \over dx} + {dy \over dx} </math><strong>MediaWiki has been installed.</strong>
<math display="inline">{dy \over dx} + {dy \over dx} </math><strong>MediaWiki has been installed.</strong><syntaxhighlight lang="python3">
 
def sequence_generator_unique(instance_len, ploidy, no_subsets):
Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.
    sequence = np.zeros((ploidy, instance_len), dtype="intp")
    subsets = np.random.permutation(no_subsets)
    for p in range(ploidy):
        for i in range(no_subsets):
            sequence[p][i] = subsets[i]
        for i in range(no_subsets,instance_len):
            sequence[p][i] = np.random.randint(no_subsets)
    return sequence
</syntaxhighlight>Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.


== Getting started ==
== Getting started ==

Revision as of 09:28, 21 December 2022

MediaWiki has been installed.<syntaxhighlight lang="python3"> def sequence_generator_unique(instance_len, ploidy, no_subsets):

   sequence = np.zeros((ploidy, instance_len), dtype="intp")
   subsets = np.random.permutation(no_subsets)
   for p in range(ploidy):
       for i in range(no_subsets):
           sequence[p][i] = subsets[i]
       for i in range(no_subsets,instance_len):
           sequence[p][i] = np.random.randint(no_subsets)
   return sequence

</syntaxhighlight>Consult the User's Guide for information on using the wiki software.

Getting started