Retrieves a set of Touchstone® Marginal Impact Analysis Results.
The Marginal Impact Analysis results set contains a group of Marginal Impact Results for each relevant Region Peril Set that you specified when configuring the Marginal Impact Analysis. Marginal Impact results include the following information:
- Aggregate and occurrence results for the reference Portfolio
- Aggregate and occurrence results for the new Contract/Portfolio
- Aggregate and occurrence Portfolio impacts
- Aggregate and occurrence Marginal impact
Each group of Marginal Impact Results within a Marginal Impact Results set contains the following data:
- Average annual loss (AAL)
- Standard deviation (SD)
- Exceedance Probability (EP) points
Syntax
Public Function GetMarginalImpactAnalysisResult( _
ByVal As GetMarginalImpactAnalysisResultRequest _
) As GetMarginalImpactAnalysisResultResponse
Dim instance As MarginalImpactServiceClient
Dim request As GetMarginalImpactAnalysisResultRequest
Dim value As GetMarginalImpactAnalysisResultResponse
value = instance.GetMarginalImpactAnalysisResult(request)
public GetMarginalImpactAnalysisResultResponse GetMarginalImpactAnalysisResult(
GetMarginalImpactAnalysisResultRequest
)
Parameters
- request
- Contains a GetMarginalImpactAnalysisResultRequest that identifies the Touchstone-generated Analysis Sequential Identifier (SID) of the Marginal Impact Analysis for which you want to view results, along with the associated Business Unit SID and SQL Instance SID.
Return Value
A GetMarginalImpactAnalysisResultResponse containing the set of Marginal Impact Analysis Results that you have requested.
Example
The following example shows how to retrieve Touchstone Marginal Impact Analysis Results using the
GetMarginalImpactAnalysisResultRequest()
method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.LossAnalysis.Data;
using AIR.Services.MarginalImpact.Api;
class SnippetGetMarginalImpactAnalysisResultRequest
{
private static void GetMarginalImpactAnalysisResult(int businessUnitSid, int sqlInstanceSid, int analysisSid)
{
MarginalImpactServiceClient client = new MarginalImpactServiceClient();
GetMarginalImpactAnalysisResultRequest request = new GetMarginalImpactAnalysisResultRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.AnalysisSid = analysisSid;
GetMarginalImpactAnalysisResultResponse response = client.GetMarginalImpactAnalysisResult(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("------------------ Aggregate -----------------------");
foreach (MarginalImpactAnalysisEPSummary epS in response.Result.AggregateEPSummaryDistribution)
{
Console.WriteLine(" ");
Console.WriteLine(" Type : " + epS.OutputType.ToString());
Console.WriteLine(" Financial Perspective : " + epS.FinancialPerspective.ToString());
Console.WriteLine(" Expected Value : " + epS.ExpectedValue.ToString());
Console.WriteLine(" Standard Deviation : " + epS.StandardDeviation.ToString());
Console.WriteLine(" Peril : " + epS.Peril.ToString());
Console.WriteLine(" EP1 : " + epS.EP1.ToString());
Console.WriteLine(" EP2 : " + epS.EP2.ToString());
Console.WriteLine(" EP3 : " + epS.EP3.ToString());
Console.WriteLine(" EP4 : " + epS.EP4.ToString());
Console.WriteLine(" EP5 : " + epS.EP5.ToString());
Console.WriteLine(" EP6 : " + epS.EP6.ToString());
Console.WriteLine(" ");
}
Console.WriteLine("------------------ Occurrence -----------------------");
foreach (MarginalImpactAnalysisEPSummary epS in response.Result.OccurrenceEPSummaryDistribution)
{
Console.WriteLine(" ");
Console.WriteLine(" Type : " + epS.OutputType.ToString());
Console.WriteLine(" Financial Perspective : " + epS.FinancialPerspective.ToString());
Console.WriteLine(" Expected Value : " + epS.ExpectedValue.ToString());
Console.WriteLine(" Standard Deviation : " + epS.StandardDeviation.ToString());
Console.WriteLine(" Peril : " + epS.Peril.ToString());
Console.WriteLine(" EP1 : " + epS.EP1.ToString());
Console.WriteLine(" EP2 : " + epS.EP2.ToString());
Console.WriteLine(" EP3 : " + epS.EP3.ToString());
Console.WriteLine(" EP4 : " + epS.EP4.ToString());
Console.WriteLine(" EP5 : " + epS.EP5.ToString());
Console.WriteLine(" EP6 : " + epS.EP6.ToString());
Console.WriteLine(" ");
}
}
}
}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also