fr.geocites.marius.model

TestModel

object TestModel extends BonusFixedCostModel

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TestModel
  2. BonusFixedCostModel
  3. DefaultValues
  4. FixedCost
  5. Bonus
  6. Marius
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class Transacted(cities: Seq[City], supplies: Seq[Double], demands: Seq[Double], transacted: DenseMatrix) extends Product with Serializable

    Technical data structure to memoize the matrix computation

    Technical data structure to memoize the matrix computation

    cities

    the cities

    supplies

    the supplies of the city

    demands

    the demands of the city

    transacted

    the transaction matrix

    Definition Classes
    Marius

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. val bonusMultiplier: Double

    Factor adjusting bonus value

    Factor adjusting bonus value

    Definition Classes
    BonusFixedCostModelBonus
  6. def bonuses(t: Transacted): Seq[Double]

    Compute the bonuses given the diversity and the volume of transactions.

    Compute the bonuses given the diversity and the volume of transactions.

    t

    the transactions

    returns

    a sequence of bonuses indexed by city indexes

    Definition Classes
    Bonus
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def demand(population: Double): Double

    Demand of a city from its population

    Demand of a city from its population

    population

    the population the city

    returns

    the demand

    Definition Classes
    Marius
  9. val distanceDecay: Double

    Decaying effect of distance on interaction

    Decaying effect of distance on interaction

    Definition Classes
    BonusFixedCostModelMarius
  10. val economicMultiplier: Double

    Factor adjusting the values of production and consumption

    Factor adjusting the values of production and consumption

    Definition Classes
    BonusFixedCostModelMarius
  11. def ended(state: State): Boolean

    Stop criterion on a maximum number of state

    Stop criterion on a maximum number of state

    state

    a state of the model

    returns

    true if the simulation is finished

    Definition Classes
    Marius
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def exchangeBalances(cities: Seq[City], network: FullNetwork, supplies: Seq[Double], demands: Seq[Double]): Seq[Double]

    Valued balance of the cities resulting from exchanges.

    Valued balance of the cities resulting from exchanges.

    cities

    the cities

    network

    the network of cities

    supplies

    the supplies of the cities indexed by city index

    demands

    the demands of the cities indexed by city index

    returns

    the exchange balance of the cities indexed by city index

    Definition Classes
    Marius
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. val fixedCost: Double

    Cost of a transaction

    Cost of a transaction

    Definition Classes
    BonusFixedCostModelFixedCost
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. def initialCities: Seq[City]

    Create the initial state of the cities

    Create the initial state of the cities

    Definition Classes
    Marius
  20. def initialState: State

    Initial state of the model

    Initial state of the model

    Definition Classes
    Marius
  21. def interactionPotential(mass1: Double, mass2: Double, distance: Double): Double

    Compute the interaction potential as a gravity model.

    Compute the interaction potential as a gravity model.

    mass1

    mass of the 1st city

    mass2

    mass of the 2nd city

    distance

    distance between the cities

    returns

    Definition Classes
    Marius
  22. def interactionPotentialMatrix(supplies: Seq[Double], demands: Seq[Double], network: FullNetwork): DenseMatrix

    Filter the interaction potential matrix

    Filter the interaction potential matrix

    supplies

    masses of the cities of origin

    demands

    masses of the cities of destination

    network

    the interaction network

    returns

    the interaction potential matrix as an adjacency matrix

    Definition Classes
    FixedCostMarius
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def maxStep: Int

    Simulate from 1959 to 1989

    Simulate from 1959 to 1989

    Definition Classes
    DefaultValues
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. def nextState(state: State): State

    The next state of the model

    The next state of the model

    state

    the current state

    returns

    the subsequent state

    Definition Classes
    Marius
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def populationToWealth(population: Double): Double

    Estimate the wealth of a city from its population

    Estimate the wealth of a city from its population

    population

    population of the city

    returns

    the estimated wealth

    Definition Classes
    Marius
  30. val populationToWealthExponent: Double

    Exponent of the scaling law to convert population into wealth

    Exponent of the scaling law to convert population into wealth

    Definition Classes
    BonusFixedCostModelMarius
  31. def rescaleWealth(wealth: Seq[Double], population: Seq[Double]): Seq[Double]

    Center the wealth distribution on the population distribution

    Center the wealth distribution on the population distribution

    wealth

    the wealth distribution

    population

    the population distribution

    returns

    the centered wealth distribution

    Definition Classes
    Marius
  32. val sizeEffectOnDemand: Double

    Exponent of the scaling law between demand and population

    Exponent of the scaling law between demand and population

    Definition Classes
    BonusFixedCostModelMarius
  33. val sizeEffectOnSupply: Double

    Exponent of the scaling law between supply and population

    Exponent of the scaling law between supply and population

    Definition Classes
    BonusFixedCostModelMarius
  34. def states: Iterator[Try[State]]

    Iterate through the states of the model

    Iterate through the states of the model

    Definition Classes
    Marius
  35. def supply(population: Double): Double

    Supply of a city from its population

    Supply of a city from its population

    population

    the population the city

    returns

    the supply

    Definition Classes
    Marius
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    AnyRef → Any
  38. def totalFixedCosts(t: Transacted): Seq[Double]

    Cost implied by the number of transactions

    Cost implied by the number of transactions

    returns

    a sequence of fixed costs indexed by city index

    Definition Classes
    FixedCostMarius
  39. def transactions(cities: Seq[City], network: FullNetwork, supplies: Seq[Double], demands: Seq[Double]): DenseMatrix

    Match cities according to their interaction potential and compute the transacted quantity

    Match cities according to their interaction potential and compute the transacted quantity

    cities

    the cities

    network

    the network of cities

    supplies

    the supplies of the cities indexed by city index

    demands

    the demands of the cities indexed by city index

    returns

    the

    Definition Classes
    Marius
  40. def updatedPopulation(city: City, updatedWealth: Double): Double

    The updated population of a city from its updated wealth

    The updated population of a city from its updated wealth

    city

    the city to update

    updatedWealth

    the updated wealth

    returns

    the updated population

    Definition Classes
    Marius
  41. def updatedWealths(state: State): Seq[Double]

    The updated wealth of the cities as a result of economic processes:

    The updated wealth of the cities as a result of economic processes:

    • supply,
    • demand,
    • exchange balance.
    state

    the current state of the model

    returns

    Definition Classes
    Marius
  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def wealthToPopulation(wealth: Double): Double

    Convert a quantity of wealth into a quantity of population

    Convert a quantity of wealth into a quantity of population

    wealth

    the stock of wealth

    returns

    the matching population

    Definition Classes
    Marius
  46. val wealthToPopulationExponent: Double

    Exponent of the scaling law to convert wealth into population

    Exponent of the scaling law to convert wealth into population

    Definition Classes
    BonusFixedCostModelMarius

Inherited from BonusFixedCostModel

Inherited from DefaultValues

Inherited from FixedCost

Inherited from Bonus

Inherited from Marius

Inherited from AnyRef

Inherited from Any

Ungrouped