lib/Models/SpatialDetailingCatalogFunction.js
function(terria) {
  CatalogFunction.call(this, terria);

  this.url = undefined;
  this.name = "Spatial Detailing";
  this.description =
    "Predicts the characteristics of fine-grained regions by learning and exploiting correlations of coarse-grained data with Census characteristics.";

  this._regionTypeToPredictParameter = new RegionTypeParameter({
    terria: this.terria,
    catalogFunction: this,
    id: "regionTypeToPredict",
    name: "Region Type to Predict",
    description: "The type of region for which to predict characteristics."
  });

  this._coarseDataRegionTypeParameter = new RegionTypeParameter({
    terria: this.terria,
    catalogFunction: this,
    id: "coarseDataRegionType",
    name: "Coarse Data Region Type",
    description:
      "The type of region with which the coarse-grained input characteristics are associated."
  });

  this._isMeanAggregationParameter = new BooleanParameter({
    terria: this.terria,
    catalogFunction: this,
    id: "isMeanAggregation",
    name: "Aggregation",
    description:
      "Specifies how coarse region values were aggregated.  True if the value is the mean of the values across the region, or False if the value is the sum of the values across the region.",
    trueName: "Mean Aggregation",
    trueDescription:
      "Coarse region values are the mean of samples in the region.  For example, average household income.",
    falseName: "Sum Aggregation",
    falseDescription:
      "Coarse region values are the sum of samples in the region.  For example, total population.",
    defaultValue: true
  });

  this._dataParameter = new RegionDataParameter({
    terria: this.terria,
    catalogFunction: this,
    id: "data",
    name: "Characteristic to Predict",
    description: "The characteristic to predict for each region.",
    regionProvider: this._coarseDataRegionTypeParameter,
    singleSelect: true
  });

  this._parameters = [
    this._coarseDataRegionTypeParameter,
    this._regionTypeToPredictParameter,
    this._isMeanAggregationParameter,
    this._dataParameter
  ];
}
function(terria) {
  CatalogFunction.call(this, terria);

  this.url = undefined;
  this.name = "Spatial Detailing";
  this.description =
    "Predicts the characteristics of fine-grained regions by learning and exploiting correlations of coarse-grained data with Census characteristics.";

  this._regionTypeToPredictParameter = new RegionTypeParameter({
    terria: this.terria,
    catalogFunction: this,
    id: "regionTypeToPredict",
    name: "Region Type to Predict",
    description: "The type of region for which to predict characteristics."
  });

  this._coarseDataRegionTypeParameter = new RegionTypeParameter({
    terria: this.terria,
    catalogFunction: this,
    id: "coarseDataRegionType",
    name: "Coarse Data Region Type",
    description:
      "The type of region with which the coarse-grained input characteristics are associated."
  });

  this._isMeanAggregationParameter = new BooleanParameter({
    terria: this.terria,
    catalogFunction: this,
    id: "isMeanAggregation",
    name: "Aggregation",
    description:
      "Specifies how coarse region values were aggregated.  True if the value is the mean of the values across the region, or False if the value is the sum of the values across the region.",
    trueName: "Mean Aggregation",
    trueDescription:
      "Coarse region values are the mean of samples in the region.  For example, average household income.",
    falseName: "Sum Aggregation",
    falseDescription:
      "Coarse region values are the sum of samples in the region.  For example, total population.",
    defaultValue: true
  });

  this._dataParameter = new RegionDataParameter({
    terria: this.terria,
    catalogFunction: this,
    id: "data",
    name: "Characteristic to Predict",
    description: "The characteristic to predict for each region.",
    regionProvider: this._coarseDataRegionTypeParameter,
    singleSelect: true
  });

  this._parameters = [
    this._coarseDataRegionTypeParameter,
    this._regionTypeToPredictParameter,
    this._isMeanAggregationParameter,
    this._dataParameter
  ];
}
function ( terria ) { CatalogFunction . call ( this , terria ) ; this . url = undefined ; this . name = "Spatial Detailing" ; this . description = "Predicts the characteristics of fine-grained regions by learning and exploiting correlations of coarse-grained data with Census characteristics." ; this . _regionTypeToPredictParameter = new RegionTypeParameter ( { terria : this . terria , catalogFunction : this , id : "regionTypeToPredict" , name : "Region Type to Predict" , description : "The type of region for which to predict characteristics." } ) ; this . _coarseDataRegionTypeParameter = new RegionTypeParameter ( { terria : this . terria , catalogFunction : this , id : "coarseDataRegionType" , name : "Coarse Data Region Type" , description : "The type of region with which the coarse-grained input characteristics are associated." } ) ; this . _isMeanAggregationParameter = new BooleanParameter ( { terria : this . terria , catalogFunction : this , id : "isMeanAggregation" , name : "Aggregation" , description : "Specifies how coarse region values were aggregated.  True if the value is the mean of the values across the region, or False if the value is the sum of the values across the region." , trueName : "Mean Aggregation" , trueDescription : "Coarse region values are the mean of samples in the region.  For example, average household income." , falseName : "Sum Aggregation" , falseDescription : "Coarse region values are the sum of samples in the region.  For example, total population." , defaultValue : true } ) ; this . _dataParameter = new RegionDataParameter ( { terria : this . terria , catalogFunction : this , id : "data" , name : "Characteristic to Predict" , description : "The characteristic to predict for each region." , regionProvider : this . _coarseDataRegionTypeParameter , singleSelect : true } ) ; this . _parameters = [ this . _coarseDataRegionTypeParameter , this . _regionTypeToPredictParameter , this . _isMeanAggregationParameter , this . _dataParameter ] ; }
A Terria Spatial Inference function to predicts the characteristics of fine-grained regions by learning and
exploiting correlations of coarse-grained data with Census characteristics.

@alias SpatialDetailingCatalogFunction
@constructor
@extends CatalogFunction

@param {Terria} terria The Terria instance.
A Terria Spatial Inference function to predicts the characteristics of fine - grained regions by learning and exploiting correlations of coarse - grained data with Census characteristics .