Pagina principală: Difference between revisions

From Bitnami MediaWiki
No edit summary
No edit summary
Line 9: Line 9:
             sequence[p][i] = np.random.randint(no_subsets)
             sequence[p][i] = np.random.randint(no_subsets)
     return sequence
     return sequence
</syntaxhighlight>Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software.
</syntaxhighlight>
 
 
Consult the [[mediawikiwiki:Special:MyLanguage/Help:Contents|User's Guide]] for information on using the wiki software.


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

Revision as of 09:42, 21 December 2022

MediaWiki has been installed.<syntaxhighlight lang="python3" line="1"> 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