population

package
v0.1.44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package population names the populations of virtual learners: each changes one assumption of the base population, on the graphs it says, and runs to its limit. Two sides of one assumption take half the learners each: the even ones the first side, the odd ones the second.

Index

Constants

View Source
const (
	Olympiad = "novatrail/olympiad-math"
	Grade3   = "novatrail/grade-3-math"
	Essays   = "novatrail/english-essays"
)

The modules of the first slice, by full ID.

View Source
const CorrectAfter = 10

CorrectAfter is the answers after which the adult of C-grade1 corrects the level: about one session, as the criterion of fairness counts fifty answers five sessions.

View Source
const GoalGrade = 3

GoalGrade is the grade the far skill is taught at: the one grade both maths name, and that of the reference of fairness by the grade, so that the skill is one the learners' own grade is taught.

View Source
const GoalReference = "TD-grade3"

GoalReference is the reference of fairness by the grade under the goal, the learners of D-grade3 with the far skill set.

View Source
const GoalTwin = "T-none"

GoalTwin is the twin of the populations of the goal on both maths: the same learners with the empty goal.

View Source
const Reference = "D-grade3"

Reference is the reference population of fairness by the grade, D-grade3.

Variables

View Source
var Fairness = []Population{
	{Name: "D-grade1", Graphs: olympiad, Limit: run.Maths, Reference: Reference, /* contains filtered or unexported fields */},
	{Name: Reference, Graphs: olympiad, Limit: run.Maths, Reference: Reference, /* contains filtered or unexported fields */},
	{Name: "D-grade5", Graphs: olympiad, Limit: run.Maths, Reference: Reference, /* contains filtered or unexported fields */},
}

Fairness are the populations of fairness by the grade, on olympiad maths, the one published package that names more than one grade: the assumptions of G0, the learner's grade fixed at 1, 3 or 5, a grade a start band, and the truth of grade 3 under each, so that the model starts a band below the truth's, at it and a band above it.

View Source
var Goals = []Population{
	{Name: GoalTwin, Graphs: anchored, Limit: run.Maths, Watches: []Item{AreaItem, SkillItem}, /* contains filtered or unexported fields */},
	{Name: "T-area", Graphs: anchored, Limit: run.Maths, Twin: GoalTwin, Sets: []Item{AreaItem}, Watches: []Item{AreaItem}, /* contains filtered or unexported fields */},
	{Name: "T-skill", Graphs: anchored, Limit: run.Maths, Twin: GoalTwin, Sets: []Item{SkillItem}, Watches: []Item{SkillItem}, /* contains filtered or unexported fields */},
	{Name: "TD-grade1", Graphs: olympiad, Limit: run.Maths, Reference: GoalReference, Twin: "D-grade1", Sets: []Item{SkillItem}, /* contains filtered or unexported fields */},
	{Name: GoalReference, Graphs: olympiad, Limit: run.Maths, Reference: GoalReference, Twin: Reference, Sets: []Item{SkillItem}, /* contains filtered or unexported fields */},
	{Name: "TD-grade5", Graphs: olympiad, Limit: run.Maths, Reference: GoalReference, Twin: "D-grade5", Sets: []Item{SkillItem}, /* contains filtered or unexported fields */},
}

Goals are the populations of the goal for the tutor, run only by name, as the rules are, so that no run of all the populations has them: on both maths, T-none watches the area and the far skill with the empty goal, and T-area and T-skill are its learners with the one item set before the first choice; on olympiad maths, TD- are the cells of fairness by the grade with the far skill set, each the learners of its D- twin, read against TD-grade3 as D- are against D-grade3.

View Source
var Own = []Population{
	{Name: "S-scale1.5", Graphs: olympiad, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "S-scale3.5", Graphs: olympiad, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "S-predicate", Graphs: [][]string{{synthetic.Sheet}}, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "S-adult", Graphs: olympiad, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "S-unreadable", Graphs: olympiad, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "F-model", Graphs: maths, Limit: run.Forgetting, /* contains filtered or unexported fields */},
	{Name: "F-none", Graphs: maths, Limit: run.Forgetting, /* contains filtered or unexported fields */},
	{Name: "F-exp", Graphs: maths, Limit: run.Forgetting, /* contains filtered or unexported fields */},
	{Name: "F-C1", Graphs: maths, Limit: run.Forgetting, /* contains filtered or unexported fields */},
	{Name: "F-growth5", Graphs: maths, Limit: run.Forgetting, /* contains filtered or unexported fields */},
	{Name: "F-break", Graphs: maths, Limit: run.Forgetting, /* contains filtered or unexported fields */},
	{Name: "W-shock", Graphs: grade3, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "W-error", Graphs: grade3, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "W-badday", Graphs: grade3, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "W-repeat", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "A-linked", Graphs: anchored, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "A-unpractised", Graphs: anchored, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "A-fading", Graphs: anchored, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "L-abandon", Graphs: olympiad, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "L-explain", Graphs: olympiad, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "E-base", Graphs: essays, Limit: run.Essays},
	{Name: "E-leave", Graphs: essays, Limit: run.Essays, /* contains filtered or unexported fields */},
}

Own are the populations of NovaTrail's own model and engine: the scale of bands, guessing of a predicate, an adult without a grade, an unreadable answer (S-); forgetting by other laws, on a calendar with a break (F-); pages of a workbook (W-); the anchor skill (A-); lessons (L-); essays (E-). S-predicate runs on the synthetic sheet alone: no published package has a predicate, and in the criterion and the gate its checks are "no graph".

View Source
var Rules = []Population{
	{Name: "C-grade1", Graphs: olympiad, Limit: run.Maths, Reference: Reference, /* contains filtered or unexported fields */},
}

Rules are the populations of the short run of the three rules of the learner model (a low start, an adult's correction and a guard) beside those of fairness, run only by name, so that no run of all the populations has them: C-grade1 is D-grade1 — grade 1, the truth of grade 3 and the unit of the reference — with an adult who corrects the module level to the truth's band after CorrectAfter answers.

View Source
var Standalone = []Population{
	{Name: "G0", Graphs: maths, Limit: run.Maths},
	{Name: "G1", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G2", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G2-half", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G2-fading", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G3", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G3-drop", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G4-band", Graphs: olympiad, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G5", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G6", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G7", Graphs: grade3, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G8", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G0-exact", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G0-miss0.25", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G0-miss1", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G0-start0.5", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G0-start2", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G0-skills0.3", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
	{Name: "G0-skills1", Graphs: maths, Limit: run.Maths, /* contains filtered or unexported fields */},
}

Standalone are the populations of standalone, carried over as assumptions and not as code. Their graphs are both maths unless said; G7 runs on school maths for grade 3, the one published package with a choice.

Functions

func AreaOf added in v0.1.44

func AreaOf(mods []*pack.Module) (string, bool)

AreaOf gives the area of the goal on modules: the one that holds skills with a verdict in the most of them, then the most such skills, then the least code byte by byte; false when no skill with a verdict has an area.

func FarSkill added in v0.1.44

func FarSkill(mods []*pack.Module) (string, bool)

FarSkill gives the far skill of the goal on modules: of the skills with a verdict taught at the band of GoalGrade in their module, the one with the most prerequisites in depth — the skills of its module it needs, through their prerequisites too; an anchor skill is none, as the goal's list of a skill holds none —, then of the deepest tier, then the least full ID byte by byte; false when no module teaches a skill with a verdict at that band.

func GoalItem added in v0.1.44

func GoalItem(it Item, mods []*pack.Module) (engine.GoalItem, error)

GoalItem gives the item of a kind on the modules of a graph, by its rule.

Types

type Item added in v0.1.44

type Item string

Item is the kind of an item of the goal for the tutor that a population sets or watches, each chosen by its rule on the modules of the learner's graph, so that every learner of a cell has the same goal.

const (
	// AreaItem is the area that holds skills with a verdict in the most of the modules, then the
	// most such skills, then the least code (AreaOf).
	AreaItem Item = "area"
	// SkillItem is the far skill: of the skills with a verdict taught at the band of GoalGrade, the one
	// with the most prerequisites in depth (FarSkill).
	SkillItem Item = "skill"
)

type Population

type Population struct {
	Name string
	// Graphs are the graphs it runs on, each the modules of one learner: a learner of olympiad maths
	// and one of school maths are two graphs; a learner of both is one graph of two modules.
	Graphs [][]string
	Limit  run.Limit
	// Reference is the reference population of a family of fairness by the grade, D-, and of
	// C-grade1 beside it: its learner n is the learner n of every population of the family, which
	// takes the reference's unit for every purpose, and the measure M11 reads each against it.
	// Empty for any other population.
	Reference string
	// Twin is, for a population of the goal for the tutor, the population of the same learners with
	// the empty goal: its learner n is the learner n of this one, whose units it takes, and the time to
	// the goal and the cells of fairness under the goal read against it. Empty for any other
	// population.
	Twin string
	// Sets are the items of the goal for the tutor the population sets before the learner's first
	// choice, in order; none, no goal.
	Sets []Item
	// Watches are the items whose time to the goal the lines of the population record: those it sets,
	// and on a twin the items of the populations that read against it.
	Watches []Item
	// contains filtered or unexported fields
}

Population is a population of virtual learners.

func All

func All() []Population

All gives the populations the bench has, a copy, so that no caller changes them for another.

func Named

func Named(name string) (Population, bool)

Named gives a population by its name.

func (Population) Assumptions

func (p Population) Assumptions(n int) learner.Assumptions

Assumptions gives the assumptions of the n-th learner of the population: the base population's, changed by its side.

func (Population) Fair added in v0.1.18

func (p Population) Fair() bool

Fair says whether the population reads against a reference, as those of fairness by the grade, C-grade1 and those of fairness under the goal do: the engine's ceiling does not run it, its lines carry the trace of M11, and only the constraint of fairness reads its cells, no other check of a criterion.

func (Population) Goal added in v0.1.44

func (p Population) Goal(mods []*pack.Module) (sets, watches []engine.GoalItem, err error)

Goal gives the items of the goal the population sets on the modules of a graph, and those it watches, each by its rule; an error when a rule finds nothing there.

func (Population) Side

func (p Population) Side(n int) int

Side gives the side of the n-th learner, from 0: the learners take the sides in turn.

func (Population) Units added in v0.1.18

func (p Population) Units() string

Units gives the population whose units its learners take, the names of their places of randomness, <population>/<n>: its twin's for a population of the goal that has one, the reference's for a population of fairness, or its own.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL