Esri Business Analyst Server API for Silverlight 2.2 Reference
CustomerProfilingParameters Class
Members  Example  See Also  Send Feedback
ESRI.ArcGIS.Client.BAServer.Tasks.Analyses Namespace : CustomerProfilingParameters Class

Glossary Item Box

The CustomerProfilingParameters class provides input parameters for the Customer Profiling task.

Object Model

CustomerProfilingParameters ClassExtentData ClassPointLayer ClassBAResultType Class

Syntax

Remarks

The DataLayerID parameter specifies the ID of a standard layer used for profiling customers. The Summarizations parameter specifies demographic variables to be profiled.

The analysis can be restricted to an analysis extent if the AnalysisExtent parameter is specified.

The ProfileType parameter specifies what bounds of ranges of demography variables will be profiled for your customers: floor bounds, ceiling bounds, or both bounds. The Variance specifies how wide the range will be. The floor and ceiling values for a demographic variable are calculated as follows:

floor = average*(1–Variance/100), ceiling = average*(1+Variance/100).

Here average is an average value of a demographic variable calculated.

Example

The code snippet below creates CustomerProfilingParameters and then executes a Customer Profiling task.
C#Copy Code
CustomerProfilingParameters parameters = new CustomerProfilingParameters();
             
// The PointLayer type could take either data as
// ESRI.ArcGIS.Client.Tasks.FeatureSet, ESRI.ArcGIS.Client.BAServer.FolderItem,
// or a list of ESRI.ArcGIS.Client.BACore.PointRecord items, e.g.
//List<PointRecord> points = new List<PointRecord>() {
//    new PointRecord("Customer 1", "Steiner St. & Geary Blvd", "1", 37.78415, -122.4346)};
             
// Set Customers as a list of PointRecord using implicit cast operator.
parameters.Customers = points;
             
// Set demographic variables to profile customers for. 			
parameters.Summarizations = new List<string>() {"TOTPOP_CY", "HHPOP_CY"};
             
// Set ID of a geography layer to get demography from.
parameters.DataLayerID = "US.BlockGroups";
             
customerProfilingTask.ExecuteAsync(parameters, new AsyncResponder(resultHandler, faultHandler));

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Client.BACore.Client.BABaseParameters
      ESRI.ArcGIS.Client.BACore.Client.BAUtilityParameters
         ESRI.ArcGIS.Client.BAServer.Tasks.Analyses.CustomerProfilingParameters

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2010-2012 Esri, Inc. All Rights Reserved.