Learn R Programming

CosmoPhotoz (version 0.1)

computeDiagPhotoZ: Simple diagnostics for the photometric redshift results

Description

computeDiagPhotoZ computes a list of simple summary statistics for the photometric redshift estimation.

Usage

computeDiagPhotoZ(photoz, specz)

Arguments

photoz
vector
specz
vector

Value

a list containing the summary statistics

Examples

Run this code
# First, generate some mock data
ppo <- runif(1000, min=0.1, max=2)
ppo_ph <- rnorm(length(ppo), mean=ppo, sd=0.05)

# Now, compute the summary stats
computeDiagPhotoZ(ppo_ph, ppo)

Run the code above in your browser using DataLab