Package

cogx

utilities

Permalink

package utilities

Visibility
  1. Public
  2. All

Type Members

  1. class Random extends java.util.Random with Serializable

    Permalink

    Single source of Random number generators from within the Cog core software.

    Single source of Random number generators from within the Cog core software. Outside the core, cog.Library.Random is generally used.

    Usage:

    new cogx.utilities.Random() returns generator per the global policy on determinism (see Random.Deterministic)

    new cogx.utilities.Random(seed) returns seeded (i.e. deterministic) RNG

    Ultimately, all of the underlying java.util.Random rng's have their seeds set. The seeds are taken from the seedGenerator, itself a random number generator. When the Deterministic flag is set, the seedGenerator is itself seeded, so all the other rng's have deterministic seeds. When the Deterministic flag is not set, the seedGenerator is not seeded and so returns a random sequence of seeds to the various rng's that get created.

    Cog's Random here has extra hooks to help maintain randomly initialized fields. The idea is that such a field should look the same to multiple observers, and also reset back to the same initial state. A field's init function is guaranteed to be called starting with the first field point (with all-zero coordinates), plus Cog will ask for the field points contents in a deterministic manner.

    User: Dick Carter Date: 12/12/12

    Annotations
    @SerialVersionUID()

Value Members

  1. object AnnotateThread

    Permalink

    Created by Dick Carter on 10/2/14.

    Created by Dick Carter on 10/2/14.

    Adds a string to the name of the thread as seen by profilers and other tools like jconsole

  2. object Random extends Serializable

    Permalink

Deprecated Value Members

  1. object PGMImageFile

    Permalink

    Reader of PGM (portable gray map) image files.

    Reader of PGM (portable gray map) image files.

    This will only handle "raw" PGM files where the pixels are unsigned bytes and will only read the first image in the file. This could easily be extended to read PGM files with multiple images in them.

    Annotations
    @deprecated
    Deprecated

    (Since version 4.1.11) This functionality has been moved to cogio.imagefiles.GrayscaleImage.fromPGM and will be removed in cog 5.0

Ungrouped