C# Class Madingley.ResponsiveDispersal

A formulation of the process of dispersal
Inheritance: Madingley.CommonDispersalMethods, IDispersalImplementation
显示文件 Open project: Madingley/C-sharp-version-of-Madingley Class Usage Examples

Public Methods

Method Description
InitialiseParametersResponsiveDispersal ( ) : void
WriteOutParameterValues ( StreamWriter sw ) : void

Write out the values of the parameters to an output file

Protected Methods

Method Description
CalculateDispersalProbability ( Madingley.ModelGrid madingleyGrid, uint latIndex, uint lonIndex, double dispersalSpeed ) : double[]

Calculates the probability of responsive dispersal given average individual dispersal speed and grid cell

CalculateDispersalSpeed ( double bodyMass ) : double

Calculate the average diffusive dispersal speed of individuals in a cohort given their body mass

Private Methods

Method Description
CheckDensityDrivenDispersal ( Madingley.ModelGrid gridForDispersal, uint latIndex, uint lonIndex, Madingley.Cohort cohortToDisperse, int functionalGroup, int cohortNumber ) : void
CheckStarvationDispersal ( Madingley.ModelGrid gridForDispersal, uint latIndex, uint lonIndex, Madingley.Cohort cohortToDisperse, int functionalGroup, int cohortNumber ) : bool

Method Details

CalculateDispersalProbability() protected method

Calculates the probability of responsive dispersal given average individual dispersal speed and grid cell
protected CalculateDispersalProbability ( Madingley.ModelGrid madingleyGrid, uint latIndex, uint lonIndex, double dispersalSpeed ) : double[]
madingleyGrid Madingley.ModelGrid The model grid
latIndex uint The latitude index of the grid cell to check for dispersal
lonIndex uint The longitude index of the grid cell to check for dispersal
dispersalSpeed double The average dispersal speed of individuals in the acting cohort
return double[]

CalculateDispersalSpeed() protected method

Calculate the average diffusive dispersal speed of individuals in a cohort given their body mass
protected CalculateDispersalSpeed ( double bodyMass ) : double
bodyMass double The current body mass of an individual in the cohort
return double

InitialiseParametersResponsiveDispersal() public method

public InitialiseParametersResponsiveDispersal ( ) : void
return void

WriteOutParameterValues() public method

Write out the values of the parameters to an output file
public WriteOutParameterValues ( StreamWriter sw ) : void
sw System.IO.StreamWriter A streamwriter object to write the parameter values to
return void